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: Get the path to an image.
          
docstr_tok: ["Get","the","path","to","an","image","."]
code: def image_path(self, image_index):
      """Get the path to an image."""
      return os.path.join(
          self.data_dir,
          "JPEGImages",
          self.image_names[image_index] + self.image_extension,
      )
  
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 9 for calling the PascalVocGenerator obj's underlying member method code with example usage: obj.image_path(image_index) and returns: os