class_docstr: Generate data from the COCO dataset.
  
  See https://github.com/cocodataset/cocoapi/tree/master/PythonAPI for more information.
class_docstr_tok: ["Generate","data","from","the","COCO","dataset",".","See","https",":","\/\/github.com\/cocodataset\/cocoapi\/tree\/master\/PythonAPI","for","more","information","."]
docstr: Returns the image path for image_index.
          
docstr_tok: ["Returns","the","image","path","for","image_index","."]
code: def image_path(self, image_index):
      """Returns the image path for image_index."""
      image_info = self.coco.loadImgs(self.image_ids[image_index])[0]
      path = os.path.join(
          self.data_dir,
          "images",
          self.set_name,
          image_info["file_name"],
      )
      return path
  
imports: from ..preprocessing.generator import Generator
  from ..utils.image import read_image_bgr
  import os
  import numpy
  from pycocotools.coco import COCO
label_desc: Use image node_id 12 for calling the CocoGenerator obj's underlying member method code with example usage: obj.image_path(image_index) and returns: path