def test_datamodule_labelstudio_text():
    """Test creation of LabelStudioTextClassificationInput and Datamodule from text."""
    download_data("https://label-studio-testdata.s3.us-east-2.amazonaws.com/lightning-flash/text_data.zip", "./data/")
    datamodule = TextClassificationData.from_labelstudio(
        train_export_json="data/project.json",
        data_folder="data/upload/",
        batch_size=4,
    )
    assert datamodule
Test creation of LabelStudioTextClassificationInput and Datamodule from text.
tests/core/integrations/labelstudio/test_labelstudio.py