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: Compute the aspect ratio for an image with image_index.
          
docstr_tok: ["Compute","the","aspect","ratio","for","an","image","with","image_index","."]
code: def image_aspect_ratio(self, image_index):
      """Compute the aspect ratio for an image with image_index."""
      image = self.coco.loadImgs(self.image_ids[image_index])[0]
      return float(image["width"]) / float(image["height"])
  
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 13 for calling the CocoGenerator obj's underlying member method code with example usage: obj.image_aspect_ratio(image_index) and returns: unknown