code: def test_from_lists():
      dm = TabularClassificationData.from_lists(
          categorical_fields=["category"],
          numerical_fields=["scalar_a", "scalar_b"],
          target_fields="label",
          train_list=TEST_LIST_1,
          val_list=TEST_LIST_2,
          test_list=TEST_LIST_2,
          num_workers=0,
          batch_size=1,
      )
      for dl in [
          dm.train_dataloader(),
          dm.val_dataloader(),
          dm.test_dataloader(),
      ]:
          data = next(iter(dl))
          (cat, num) = data[DataKeys.INPUT]
          target = data[DataKeys.TARGET]
          assert cat.shape == (1, 1)
          assert num.shape == (1, 2)
          assert target.shape == (1,)
  
file_path: lightning-flash/tests/tabular/classification/test_data.py
imports: from pathlib import Path
  from unittest.mock import Mock
  import numpy
  import pytest
  from flash.core.data.io.input import DataKeys
  from flash.core.utilities.imports import _TOPIC_TABULAR_AVAILABLE
label_desc: Use image node_id 9 for calling a global function with example usage: test_from_lists() without return types