def METHOD_NAME(file_path: str) -> cv2.VideoCapture:
    """Open a video file.
    :param file_path:   Path to the video file
    :return:            Opened video capture object
    """
    cap = cv2.VideoCapture(file_path)
    if not cap.isOpened():
        raise ValueError(f"Failed to open video file: {file_path}")
    return cap