def mock_video_data_frame():
    """Creates a temporary mock encoded video dataset with 4 videos labeled from 0 to 4.

    Returns a labeled video file which points to this mock encoded video dataset, the ordered label and videos tuples
    and the video duration in seconds.

    """
    num_frames = 10
    fps = 5
    with temp_encoded_video(num_frames=num_frames, fps=fps) as (
        video_file_name_1,
        data_1,
    ), temp_encoded_video(num_frames=num_frames, fps=fps) as (
        video_file_name_2,
        data_2,
    ):
        data_frame = DataFrame.from_dict(
            {
                "file": [video_file_name_1, video_file_name_2, video_file_name_1, video_file_name_2],
                "target": ["cat", "dog", "cat", "dog"],
            }
        )

        video_duration = num_frames / fps
        yield data_frame, video_duration
Creates a temporary mock encoded video dataset with 4 videos labeled from 0 to 4.

    Returns a labeled video file which points to this mock encoded video dataset, the ordered label and videos tuples
    and the video duration in seconds.

    
tests/video/classification/test_model.py