code: def _copy_metadata(from_dir, to_dir):
      """Copy the info files from within `from_dir` to `to_dir`."""
      if not FLAGS.dry_run:
          tf.io.gfile.makedirs(to_dir)
      for fname in tfds.core.utils.list_info_files(from_dir):
          from_path = os.path.join(from_dir, fname)
          to_path = os.path.join(to_dir, fname)
          logging.info("cp %s %s", from_path, to_path)
          if not FLAGS.dry_run:
              tf.io.gfile.copy(from_path, to_path, overwrite=True)
  
file_path: datasets/tensorflow_datasets/scripts/deployment/copy_dataset_info_files.py
imports: import os
  from absl import app
  from absl import flags
  from absl import logging
  import tensorflow_datasets
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: _copy_metadata(from_dir, to_dir) without return types