code: def dataset_loading_script_dir(
      dataset_loading_script_name, dataset_loading_script_code, tmp_path
  ):
      script_name = dataset_loading_script_name
      script_dir = tmp_path / "datasets" / script_name
      script_dir.mkdir(parents=True)
      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)
  
label_desc: Use image node_id 3 for calling a global function with example usage: dataset_loading_script_dir(dataset_loading_script_name, dataset_loading_script_code, tmp_path) and returns: str