code: def _write_dataset_files(
      root_path: pathlib.Path,
      namespace: str,
      ds_files: Dict[str, List[str]],
  ) -> str:
      """Write the repo content containing the datasets."""
      repo_path = root_path / namespace
      # Create all datasets
      for ds_name, files in ds_files.items():
          ds_path = repo_path / ds_name
          ds_path.mkdir(parents=True)  # Create the containing dir
          for fname in files:
              (ds_path / fname).touch()  # Create the file
  
      # Additional noisy files should be ignored
      (repo_path / "__init__.py").touch()
      return str(repo_path)
  
file_path: datasets/tensorflow_datasets/scripts/deployment/export_community_datasets_test.py
imports: import pathlib
  import string
  import textwrap
  from typing import Dict, List
  import tensorflow_datasets
  from tensorflow_datasets.scripts.deployment import export_community_datasets
  import toml
label_desc: Use image node_id 1 for calling a global function with example usage: _write_dataset_files(root_path, namespace, ds_files) and returns: str