code: def parquet_data(tmpdir, multilabel: bool):
      path = Path(tmpdir) / "data.parquet"
      if multilabel:
          TEST_DATA_FRAME_DATA_MULTILABEL.to_parquet(path)
      else:
          TEST_DATA_FRAME_DATA.to_parquet(path)
      return path
  
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 4 for calling a global function with example usage: parquet_data(tmpdir, multilabel) and returns: path