class_docstr: Coco captions dataset with the splits defined by Karpathy and Li 2015.
code: def _info(self):
      coco_info = super(CocoCaptions, self)._info()
  
      features = dict(coco_info.features)
      features["captions"] = tfds.features.Sequence(
          {
              "text": np.str_,
              "id": np.int64,
          }
      )
      return tfds.core.DatasetInfo(
          builder=self,
          description=_DESCRIPTION,
          features=tfds.features.FeaturesDict(features),
          homepage=coco_info.homepage,
          citation=coco_info.citation + _EXTRA_CITATION,
      )
  
file_path: datasets/tensorflow_datasets/object_detection/coco_captions.py
imports: from __future__ import annotations
  import collections
  import json
  import os
  from absl import logging
  from etils import epath
  import numpy
  from tensorflow_datasets.object_detection import coco
  import tensorflow_datasets.public_api
label_desc: Use image node_id 1 for calling the CocoCaptions obj's underlying member method code with example usage: obj._info() and returns: tfds