class_docstr: Imagenet 2012, aka ILSVRC 2012.
class_docstr_tok: ["Imagenet","2012",",","aka","ILSVRC","2012","."]
code: def _split_generators(self, dl_manager):
      train_path = os.path.join(
          dl_manager.manual_dir, "ILSVRC2012_img_train.tar"
      )
      val_path = os.path.join(
          dl_manager.manual_dir, "ILSVRC2012_img_val.tar"
      )
      test_path = os.path.join(
          dl_manager.manual_dir, "ILSVRC2012_img_test.tar"
      )
      splits = []
      _add_split_if_exists(
          split_list=splits,
          split=tfds.Split.TRAIN,
          split_path=train_path,
          dl_manager=dl_manager,
      )
      _add_split_if_exists(
          split_list=splits,
          split=tfds.Split.VALIDATION,
          split_path=val_path,
          dl_manager=dl_manager,
          validation_labels=imagenet_common.get_validation_labels(
              val_path
          ),
      )
      _add_split_if_exists(
          split_list=splits,
          split=tfds.Split.TEST,
          split_path=test_path,
          dl_manager=dl_manager,
          labels_exist=False,
      )
      if not splits:
          raise AssertionError(
              "ImageNet requires manual download of the data. Please download "
              "the data and place them into:\n"
              f" * train: {train_path}\n"
              f" * test: {test_path}\n"
              f" * validation: {val_path}\n"
              "At least one of the split should be available."
          )
      return splits
  
file_path: datasets/tensorflow_datasets/datasets/imagenet2012/imagenet2012_dataset_builder.py
imports: import io
  import os
  from absl import logging
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  from tensorflow_datasets.datasets.imagenet2012 import imagenet_common
  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: splits