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 True if name is a known class.
          
docstr_tok: ["Returns","True","if","name","is","a","known","class","."]
code: def has_name(self, name):
      """Returns True if name is a known class."""
      return name in self.classes
  
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 6 for calling the CocoGenerator obj's underlying member method code with example usage: obj.has_name(name) and returns: unknown