class_docstr: DatasetBuilder for lvis dataset.
class_docstr_tok: ["DatasetBuilder","for","lvis","dataset","."]
docstr: Returns SplitGenerators.
docstr_tok: ["Returns","SplitGenerators","."]
code: def _split_generators(
      self, dl_manager: tfds.download.DownloadManager
  ):
      """Returns SplitGenerators."""
      paths = dl_manager.download_and_extract(_URLS)
      image_dirs = [
          paths["train_images"] / "train2017",
          paths["validation_images"] / "val2017",
          paths["test_images"] / "test2017",
      ]
      return {
          tfds.Split.TRAIN: self._generate_examples(
              image_dirs,
              paths["train_annotation"] / "lvis_v1_train.json",
          ),
          tfds.Split.VALIDATION: self._generate_examples(
              image_dirs,
              paths["validation_annotation"] / "lvis_v1_val.json",
          ),
          tfds.Split.TEST: self._generate_examples(
              image_dirs,
              paths["test_annotation"]
              / "lvis_v1_image_info_test_dev.json",
          ),
          "minival": self._generate_examples(
              image_dirs,
              paths["minival_annotation"] / "lvis_v1_minival.json",
          ),
      }
  
imports: from __future__ import annotations
  import collections
  import json
  import pathlib
  from etils import epath
  import numpy
  import tensorflow_datasets.public_api
label_desc: Use image node_id 2 for calling the Builder obj's underlying member method code with example usage: obj._split_generators(dl_manager) and returns: dict