code: def dataset_loading_script_dir(tmp_path):
      script_name = DATASET_LOADING_SCRIPT_NAME
      script_dir = tmp_path / script_name
      script_dir.mkdir()
      script_path = script_dir / f"{script_name}.py"
      with open(script_path, "w") as f:
          f.write(DATASET_LOADING_SCRIPT_CODE)
      return str(script_dir)
  
imports: import os
  import tarfile
  import warnings
  import numpy
  import pandas
  import pyarrow
  import pytest
  from datasets import Dataset, Features, Image, Sequence, Value, concatenate_datasets, load_dataset
  from datasets.features.image import encode_np_array, image_to_bytes
  from ..utils import require_pil
label_desc: Use image node_id 20 for calling a global function with example usage: dataset_loading_script_dir(tmp_path) and returns: str