code: 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
  
file_path: lightning-flash/tests/core/integrations/labelstudio/test_labelstudio.py
imports: import pytest
  from flash.core.data.utils import download_data
  from flash.core.integrations.labelstudio.input import LabelStudioImageClassificationInput, LabelStudioInput, LabelStudioTextClassificationInput, _load_json_data
  from flash.core.integrations.labelstudio.visualizer import launch_app
  from flash.core.utilities.imports import _TOPIC_CORE_AVAILABLE, _TOPIC_IMAGE_AVAILABLE, _TOPIC_TEXT_AVAILABLE, _TOPIC_VIDEO_AVAILABLE
  from flash.core.utilities.stages import RunningStage
  from flash.image.classification.data import ImageClassificationData
  from flash.text.classification.data import TextClassificationData
  from flash.video.classification.data import LabelStudioVideoClassificationInput, VideoClassificationData
label_desc: Use image node_id 7 for calling a global function with example usage: test_datamodule_labelstudio_text() without return types