code: def _download(
      args: argparse.Namespace,
      builder: tfds.core.DatasetBuilder,
  ) -> None:
      """Downloads all files of the given builder."""
      dl_config = _make_download_config(args, dataset_name=builder.name)
  
      if dl_config.register_checksums:
          raise ValueError(
              "It is not allowed to enable --register_checksums "
              "when using --download_only!"
          )
  
      if builder.url_infos is None:
          raise ValueError(
              f"URL infos of builder {builder.name} are not defined, "
              "so cannot download these URLs."
          )
  
      max_simultaneous_downloads = None
      if builder.MAX_SIMULTANEOUS_DOWNLOADS is not None:
          max_simultaneous_downloads = (
              builder.MAX_SIMULTANEOUS_DOWNLOADS
          )
  
      download_dir = args.download_dir or os.path.join(
          builder._data_dir_root,
          "downloads",  # pylint: disable=protected-access
      )
      dl_manager = tfds.download.DownloadManager(
          download_dir=download_dir,
          url_infos=builder.url_infos,
          force_download=False,
          force_extraction=False,
          force_checksums_validation=dl_config.force_checksums_validation,
          register_checksums=False,
          verify_ssl=dl_config.verify_ssl,
          dataset_name=builder.name,
          max_simultaneous_downloads=max_simultaneous_downloads,
      )
  
      urls_to_download = {
          f"file{i}": url
          for i, url in enumerate(builder.url_infos.keys())
      }
      dl_manager.download(urls_to_download)
  
imports: import argparse
  import functools
  import importlib
  import itertools
  import json
  import multiprocessing
  import os
  import typing
  from typing import Dict, Iterator, Optional, Tuple, Type, Union
  from absl import logging
  from etils import epath
  import tensorflow_datasets
label_desc: Use image node_id 8 for calling a global function with example usage: _download(args, builder) without return types