code: def test_from_lists():
      dm = TextClassificationData.from_lists(
          train_data=TEST_LIST_DATA,
          train_targets=TEST_LIST_TARGETS,
          val_data=TEST_LIST_DATA,
          val_targets=TEST_LIST_TARGETS,
          test_data=TEST_LIST_DATA,
          test_targets=TEST_LIST_TARGETS,
          predict_data=TEST_LIST_DATA,
          batch_size=1,
      )
  
      batch = next(iter(dm.train_dataloader()))
      assert batch[DataKeys.TARGET].item() in [0, 1]
      assert isinstance(batch[DataKeys.INPUT][0], str)
  
      batch = next(iter(dm.val_dataloader()))
      assert batch[DataKeys.TARGET].item() in [0, 1]
      assert isinstance(batch[DataKeys.INPUT][0], str)
  
      batch = next(iter(dm.test_dataloader()))
      assert batch[DataKeys.TARGET].item() in [0, 1]
      assert isinstance(batch[DataKeys.INPUT][0], str)
  
      batch = next(iter(dm.predict_dataloader()))
      assert isinstance(batch[DataKeys.INPUT][0], str)
  
imports: import os
  from pathlib import Path
  import pandas
  import pytest
  from flash.core.data.io.input import DataKeys
  from flash.core.utilities.imports import _TOPIC_TEXT_AVAILABLE
  from flash.text import TextClassificationData
label_desc: Use image node_id 17 for calling a global function with example usage: test_from_lists() without return types