code: def test_from_json_with_field_multilabel(tmpdir):
      json_path = json_data_with_field(tmpdir, multilabel=True)
      dm = TextClassificationData.from_json(
          "sentence",
          ["lab1", "lab2"],
          train_file=json_path,
          val_file=json_path,
          test_file=json_path,
          predict_file=json_path,
          batch_size=1,
          field="data",
      )
  
      assert dm.multi_label
  
      batch = next(iter(dm.train_dataloader()))
      assert all(label in [0, 1] for label in batch[DataKeys.TARGET][0])
      assert isinstance(batch[DataKeys.INPUT][0], str)
  
      batch = next(iter(dm.val_dataloader()))
      assert all(label in [0, 1] for label in batch[DataKeys.TARGET][0])
      assert isinstance(batch[DataKeys.INPUT][0], str)
  
      batch = next(iter(dm.test_dataloader()))
      assert all(label in [0, 1] for label in batch[DataKeys.TARGET][0])
      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 10 for calling a global function with example usage: test_from_json_with_field_multilabel(tmpdir) without return types