code: def add_checksums_dir(checksums_dir: str) -> None:
      """Registers a new checksums dir.
  
      This function allow external datasets not present in the tfds repository to
      define their own checksums_dir containing the dataset downloads checksums.
  
      Note: When redistributing your dataset, you should distribute the checksums
      files with it and set `add_checksums_dir` when the user is importing your
      `my_dataset.py`.
  
      ```
      # Set-up the folder containing the 'my_dataset.txt' checksums.
      checksum_dir = os.path.join(os.path.dirname(__file__), 'checksums/')
      checksum_dir = os.path.normpath(checksum_dir)
  
      # Add the checksum dir (will be executed when the user import your dataset)
      tfds.download.add_checksums_dir(checksum_dir)
  
      class MyDataset(tfds.core.DatasetBuilder):
        ...
      ```
  
      Args:
        checksums_dir: `str`, checksums dir to add to the registry
      """
      logging.warning(
          "`tfds.core.add_checksums_dir` is deprecated. Refactor dataset in "
          "self-contained folders (`my_dataset/` folder containing "
          "my_dataset.py, my_dataset_test.py, dummy_data/, checksums.tsv). "
          "The checksum file will be automatically detected. More info at: "
          "https://www.tensorflow.org/datasets/add_dataset"
      )
      if checksums_dir in _CHECKSUM_DIRS:  # Avoid duplicate
          return
      _CHECKSUM_DIRS.append(checksums_dir)
  
file_path: datasets/tensorflow_datasets/core/download/checksums.py
imports: import dataclasses
  import hashlib
  import io
  from typing import Any, Dict, Iterable, Optional
  from absl import logging
  from etils import epath
  from tensorflow_datasets.core import utils
label_desc: Use image node_id 2 for calling a global function with example usage: add_checksums_dir(checksums_dir) without return types