def mock_encoded_video_dataset_folder(tmpdir):
    """Creates a temporary mock encoded video directory tree with 2 videos labeled 1, 2.

    Returns a directory that to this mock encoded video dataset and the video duration in seconds.

    """
    num_frames = 10
    fps = 5

    tmp_dir = Path(tmpdir)
    os.makedirs(str(tmp_dir / "c1"))
    os.makedirs(str(tmp_dir / "c2"))

    with temp_encoded_video(num_frames=num_frames, fps=fps, directory=str(tmp_dir / "c1")), temp_encoded_video(
        num_frames=num_frames, fps=fps, directory=str(tmp_dir / "c2")
    ):
        video_duration = num_frames / fps
        yield str(tmp_dir), video_duration
Creates a temporary mock encoded video directory tree with 2 videos labeled 1, 2.

    Returns a directory that to this mock encoded video dataset and the video duration in seconds.

    
tests/video/classification/test_model.py