class_docstr: DatasetBuilder for lvis dataset.
class_docstr_tok: ["DatasetBuilder","for","lvis","dataset","."]
docstr: Returns the dataset metadata.
docstr_tok: ["Returns","the","dataset","metadata","."]
code: def _info(self) -> tfds.core.DatasetInfo:
      """Returns the dataset metadata."""
      class_label = tfds.features.ClassLabel(
          names_file=tfds.core.tfds_path("datasets/lvis/classes.txt")
      )
      return self.dataset_info_from_configs(
          features=tfds.features.FeaturesDict(
              {
                  "image": tfds.features.Image(encoding_format="jpeg"),
                  "image/id": np.int64,
                  "neg_category_ids": tfds.features.Sequence(
                      class_label
                  ),
                  "not_exhaustive_category_ids": tfds.features.Sequence(
                      class_label
                  ),
                  "objects": tfds.features.Sequence(
                      {
                          # LVIS has unique id for each annotation.
                          "id": np.int64,
                          "area": np.int64,
                          "bbox": tfds.features.BBoxFeature(),
                          "label": class_label,
                          "segmentation": tfds.features.Image(
                              shape=(None, None, 1)
                          ),
                      }
                  ),
              }
          ),
          # If there's a common (input, target) tuple from the
          # features, specify them here. They'll be used if
          # `as_supervised=True` in `builder.as_dataset`.
          supervised_keys=None,
          homepage="https://www.lvisdataset.org/",
          description=(
              "LVIS: A dataset for large vocabulary instance"
              " segmentation.\n\nOfficial splits: train, validation, and test."
              " The minival split was introduced by MDETR"
              " (https://arxiv.org/abs/2104.12763;"
              " https://github.com/ashkamath/mdetr/blob/main/.github/lvis.md)."
          ),
      )
  
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 1 for calling the Builder obj's underlying member method code with example usage: obj._info() and returns: self