code: def copy(
      from_dir: tfds.typing.PathLike, to_dir: tfds.typing.PathLike
  ) -> None:
      """Copy the info files from within `from_dir` to `to_dir`."""
      for full_name in tfds.core.load.list_full_names():
          from_full_name_dir = os.path.join(from_dir, full_name)
          to_full_name_dir = os.path.join(to_dir, full_name)
  
          # Skip if the dataset isn't generated or that metadata are already copied
          if not tf.io.gfile.exists(from_full_name_dir):
              logging.info(
                  "Skipping %s (not found)", from_full_name_dir
              )
              continue
          if (
              tf.io.gfile.exists(to_full_name_dir)
              and not FLAGS.overwrite
          ):
              logging.info(
                  "Skipping %s (already exists)", to_full_name_dir
              )
              continue
  
          _copy_metadata(
              from_dir=from_full_name_dir, to_dir=to_full_name_dir
          )
  
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 2 for calling a global function with example usage: copy(from_dir, to_dir) without return types