class_docstr: Generate data for a Pascal VOC dataset.
  
  See http://host.robots.ox.ac.uk/pascal/VOC/ for more information.
class_docstr_tok: ["Generate","data","for","a","Pascal","VOC","dataset",".","See","http",":","\/\/host.robots.ox.ac.uk\/pascal\/VOC\/","for","more","information","."]
docstr: Map name to label.
          
docstr_tok: ["Map","name","to","label","."]
code: def name_to_label(self, name):
      """Map name to label."""
      return self.classes[name]
  
imports: from ..preprocessing.generator import Generator
  from ..utils.image import read_image_bgr
  import os
  import numpy
  from six import raise_from
  from PIL import Image
label_desc: Use image node_id 6 for calling the PascalVocGenerator obj's underlying member method code with example usage: obj.name_to_label(name) and returns: self