class_docstr: DatasetBuilder for iNaturalist 2021 Competition dataset.
docstr: Returns SplitGenerators.
docstr_tok: ["Returns","SplitGenerators","."]
code: def _split_generators(
      self, dl_manager: tfds.download.DownloadManager
  ):
      """Returns SplitGenerators."""
  
      split_downloads = {}
      for split, split_file in _SPLIT_FILENAMES.items():
          split_downloads[f"{split}_img"] = tfds.download.Resource(
              url=f"{_URL}/{split_file}.tar.gz",
              extract_method=tfds.download.ExtractMethod.NO_EXTRACT,
          )
          split_downloads[
              f"{split}_json"
          ] = f"{_URL}/{split_file}.json.tar.gz"
  
      output_paths = dl_manager.download_and_extract(split_downloads)
      generate_dict = {}
      for split, split_file in _SPLIT_FILENAMES.items():
          generate_dict[split] = self._generate_examples(
              images_archive=dl_manager.iter_archive(
                  output_paths[f"{split}_img"]
              ),
              json_file=os.path.join(
                  output_paths[f"{split}_json"], f"{split_file}.json"
              ),
          )
  
      return generate_dict
  
file_path: datasets/tensorflow_datasets/image_classification/i_naturalist2021/i_naturalist2021.py
imports: import json
  import os
  from etils import epath
  import numpy
  import tensorflow_datasets.public_api
label_desc: Use image node_id 2 for calling the INaturalist2021 obj's underlying member method code with example usage: obj._split_generators(dl_manager) and returns: generate_dict