def test_input_labelstudio_video():
    """Test creation of LabelStudioVideoClassificationInput from video."""
    download_data("https://label-studio-testdata.s3.us-east-2.amazonaws.com/lightning-flash/video_data.zip")
    data = {"data_folder": "data/upload/", "export_json": "data/project.json", "multi_label": True}

    train = LabelStudioVideoClassificationInput(RunningStage.TRAINING, data)
    assert train.data._labeled_videos[0] == ("data/upload/INO_Crossroads.avi", {"label": 0})
    sample_iter = iter(train)
    sample = next(sample_iter)
    assert train
    assert sample
Test creation of LabelStudioVideoClassificationInput from video.
tests/core/integrations/labelstudio/test_labelstudio.py