class_docstr: ImageNet validation images with ReaL labels.
class_docstr_tok: ["ImageNet","validation","images","with","ReaL","labels","."]
code: def _split_generators(self, dl_manager):
      val_path = os.path.join(
          dl_manager.manual_dir, "ILSVRC2012_img_val.tar"
      )
      if not tf.io.gfile.exists(val_path):
          raise AssertionError(
              "ImageNet requires manual download of the data. Please download "
              "the train and val set and place them into: {}".format(
                  val_path
              )
          )
      return [
          tfds.core.SplitGenerator(
              name=tfds.Split.VALIDATION,
              gen_kwargs={
                  "archive": dl_manager.iter_archive(val_path),
                  "original_labels": imagenet_common.get_validation_labels(
                      val_path
                  ),
                  "real_labels": self._get_real_labels(dl_manager),
              },
          ),
      ]
  
file_path: datasets/tensorflow_datasets/datasets/imagenet2012_real/imagenet2012_real_dataset_builder.py
imports: import json
  import os
  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 3 for calling the Builder obj's underlying member method code with example usage: obj._split_generators(dl_manager) and returns: list