Show specific frame of video file as an image

Was wondering if there is a simple way to grab a specific frame from a video file.
What I’m imagining is something like:

vid = cv.VideoCapture(‘filename.mp4’)
target frame = 1000

cv.imshow( 1000th frame of video )

vid.set(cv.CAP_PROP_POS_FRAMES) or CAP_PROP_POS_MSEC and then try to read.

may or may not work, may or may not be accurate. depends on the video file.