class_docstr: DatasetBuilder for LAION-400M dataset.
class_docstr_tok: ["DatasetBuilder","for","LAION-400M","dataset","."]
docstr: Downloads data.
docstr_tok: ["Downloads","data","."]
code: def _download_data(
      self, dl_manager: tfds.download.DownloadManager
  ) -> Dict[str, epath.Path]:
      """Downloads data."""
      if self.builder_config.name == LAION400M_IMAGES_CONFIG.name:
          if not dl_manager.manual_dir.exists():
              raise AssertionError(
                  "LAION-400M requires manual download of the images. Please download"
                  f" the images and place them into: {dl_manager.manual_dir}"
              )
  
          return {}
      else:
          file_name_to_url = {}
          for shard_idx in range(self.builder_config.num_shards):
              (
                  img_emb_file_name,
                  text_emb_file_name,
                  metadata_file_name,
              ) = _get_embeddings_file_names(shard_idx)
              file_name_to_url[
                  img_emb_file_name
              ] = f"{_EMBEDDINGS_URL}img_emb/{img_emb_file_name}"
              file_name_to_url[
                  text_emb_file_name
              ] = f"{_EMBEDDINGS_URL}text_emb/{text_emb_file_name}"
              file_name_to_url[
                  metadata_file_name
              ] = f"{_EMBEDDINGS_URL}metadata/{metadata_file_name}"
  
          file_name_to_dl_path = dl_manager.download(file_name_to_url)
  
          return file_name_to_dl_path
  
file_path: datasets/tensorflow_datasets/vision_language/laion400m/laion400m.py
imports: import functools
  from typing import Dict, Tuple
  from etils import epath
  import numpy
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
label_desc: Use image node_id 2 for calling the Laion400m obj's underlying member method code with example usage: obj._download_data(dl_manager) and returns: dict, file_name_to_dl_path