def METHOD_NAME(video_path, num_frames, sample='rand'):
    """
        Get indexes of sampled frames.
        Args:
            video_path: the local video path
            num_frames: Frame number, 12 frames for each video
            sample: 'rand' | 'uniform' how to sample
        Returns:
            frames: torch.tensor of stacked sampled video frames
                    of dim (num_frames, C, H, W)
            frame_idxs: list(int) indices of where the frames where sampled
    """
    cap = cv2.VideoCapture(video_path)
    assert (cap.isOpened()), video_path
    vlen = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
    frames, frame_idxs = get_valid_frames(cap, num_frames, vlen, sample)
    frames = torch.stack(frames).float() / 255
    cap.release()
    return frames, frame_idxs