code: def __init__(self, data_dir, split, **kwargs):
      super(PascalVOCReader, self).__init__(**kwargs)
      self._data_dir = data_dir
      self._split = split
      self._labels_path = os.path.join(
          self._data_dir, "ImageSets", "Main"
      )
      self._images_path = os.path.join(self._data_dir, "JPEGImages")
      self._annots_path = os.path.join(self._data_dir, "Annotations")
  
      self.yielded_records = 0
      self.errors = 0
  
      # Validate PascalVoc structure in `data_dir`.
      self._validate_structure()
  
file_path: luminoth/luminoth/tools/dataset/readers/object_detection/pascalvoc.py
imports: import os
  import tensorflow
  from luminoth.tools.dataset.readers import InvalidDataDirectory
  from luminoth.tools.dataset.readers.object_detection import ObjectDetectionReader
  from luminoth.utils.dataset import read_xml, read_image
label_desc: Use image node_id 1 to create a new PascalVOCReader object from inherited base classes: ObjectDetectionReader with example: obj = PascalVOCReader(data_dir, split)