class_docstr: Dataset from the INaturalist Competition 2018.
code: def _split_generators(self, dl_manager):
      output_files = dl_manager.download_and_extract(
          {
              "trainval_images": tfds.download.Resource(
                  url=urllib.parse.urljoin(
                      _URL, "train_val2018.tar.gz"
                  ),
                  extract_method=tfds.download.ExtractMethod.NO_EXTRACT,
              ),
              "train_annos": urllib.parse.urljoin(
                  _URL, "train2018.json.tar.gz"
              ),
              "val_annos": urllib.parse.urljoin(
                  _URL, "val2018.json.tar.gz"
              ),
              "test_images": tfds.download.Resource(
                  url=urllib.parse.urljoin(_URL, "test2018.tar.gz"),
                  extract_method=tfds.download.ExtractMethod.NO_EXTRACT,
              ),
              "categories": urllib.parse.urljoin(
                  _URL, "categories.json.tar.gz"
              ),
          }
      )
      return {
          "train": self._generate_examples(
              images_archive=dl_manager.iter_archive(
                  output_files["trainval_images"]
              ),
              annon_file=os.path.join(
                  output_files["train_annos"], "train2018.json"
              ),
              category_file=os.path.join(
                  output_files["categories"], "categories.json"
              ),
          ),
          "validation": self._generate_examples(
              images_archive=dl_manager.iter_archive(
                  output_files["trainval_images"]
              ),
              annon_file=os.path.join(
                  output_files["val_annos"], "val2018.json"
              ),
              category_file=os.path.join(
                  output_files["categories"], "categories.json"
              ),
          ),
          "test": self._generate_examples(
              images_archive=dl_manager.iter_archive(
                  output_files["test_images"]
              ),
              annon_file=None,
              category_file=None,
          ),
      }
  
file_path: datasets/tensorflow_datasets/image_classification/i_naturalist2018/i_naturalist2018.py
imports: import json
  import os
  import urllib
  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 INaturalist2018 obj's underlying member method code with example usage: obj._split_generators(dl_manager) and returns: dict