class_docstr: DatasetBuilder for imagenet_pi dataset.
class_docstr_tok: ["DatasetBuilder","for","imagenet_pi","dataset","."]
docstr: Returns the dataset metadata.
docstr_tok: ["Returns","the","dataset","metadata","."]
code: def _info(self) -> tfds.core.DatasetInfo:
      """Returns the dataset metadata."""
      names_file = imagenet_common.label_names_file()
      return self.dataset_info_from_configs(
          features=tfds.features.FeaturesDict(
              {
                  "image": tfds.features.Image(),
                  "clean_label": tfds.features.ClassLabel(
                      names_file=names_file
                  ),
                  "annotator_labels": tfds.features.Tensor(
                      shape=(NUM_MODEL_ANNOTATORS,), dtype=np.int64
                  ),
                  "annotator_confidences": tfds.features.Tensor(
                      shape=(NUM_MODEL_ANNOTATORS,), dtype=np.float32
                  ),
                  "file_name": tfds.features.Text(),  # Eg: 'n15075141_54.JPEG'.
              }
          ),
          supervised_keys=("image", "annotator_labels"),
          homepage="https://github.com/google-research-datasets/imagenet_pi/",
      )
  
file_path: datasets/tensorflow_datasets/datasets/imagenet_pi/imagenet_pi_dataset_builder.py
imports: import io
  import os
  from etils import epath
  import numpy
  from tensorflow_datasets.datasets.imagenet2012 import imagenet_common
  import tensorflow_datasets.public_api
label_desc: Use image node_id 1 for calling the Builder obj's underlying member method code with example usage: obj._info() and returns: self