def METHOD_NAME():
    """
    Get a frame from a video file.
    :return: (ndarray, float) (Loaded frame, time in seconds).
    """
    global _CAP, _FPS
    to_return_frame = None
    if _CAP is None:
        print("Error on getting frame. cv2.VideoCapture is not initialized.")
    else:
        try:
            if _CAP.isOpened():
                # Skip frames
                for i in range(int(_MAX_FPS / _FPS)):
                    _CAP.grab()
                is_valid_frame, to_return_frame = _CAP.retrieve()
                if not is_valid_frame:
                    to_return_frame = None
        except Exception as e:
            print("Error on getting a frame. Please, double-check if the video file is not corrupted.")
            print("Supported file format: MPEG-4 (*.mp4).")
            print("Check whether working versions of ffmpeg or gstreamer is installed.")
            raise e
    return to_return_frame, (_CAP.get(cv2.CAP_PROP_POS_MSEC) / 1000)