code: def setUpClass(cls):
      super(CroissantBuilderTest, cls).setUpClass()
  
      # Write raw examples on tmp/data.
      data_dir = epath.Path(tempfile.gettempdir()) / "data"
      data_dir.mkdir(parents=True, exist_ok=True)
      raw_output_file = data_dir / "raw_data.jsonl"
      with open(raw_output_file, "w") as outfile:
          for entry in DUMMY_ENTRIES:
              json.dump(entry, outfile)
              outfile.write("\n")
  
      # Write Croissant JSON-LD on tmp.
      dummy_metadata = get_dummy_metadata()
      croissant_file = (
          epath.Path(tempfile.gettempdir()) / "croissant.json"
      )
      with open(croissant_file, "w") as f:
          f.write(json.dumps(dummy_metadata.to_json(), indent=2))
          f.write("\n")
  
      cls.builder = croissant_builder.CroissantBuilder(
          file=croissant_file,
          record_set_names=["jsonl"],
          file_format=FileFormat.ARRAY_RECORD,
          disable_shuffling=True,
      )
  
file_path: datasets/tensorflow_datasets/core/dataset_builders/croissant_builder_test.py
imports: import json
  import tempfile
  from etils import epath
  import numpy
  import pytest
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import FileFormat
  from tensorflow_datasets.core.dataset_builders import croissant_builder
  from tensorflow_datasets.core.features import image_feature
  from tensorflow_datasets.core.features import text_feature
  from tensorflow_datasets.core.utils.lazy_imports_utils import mlcroissant
label_desc: Use image node_id 1 for calling the CroissantBuilderTest obj's underlying member method code with example usage: obj.setUpClass(cls) without return types