code: def __init__(self, **kwargs):
      super().__init__(**kwargs)
      if "VOC2007" in self.sub_data_root:
          self._metainfo["dataset_type"] = "VOC2007"
      elif "VOC2012" in self.sub_data_root:
          self._metainfo["dataset_type"] = "VOC2012"
      else:
          self._metainfo["dataset_type"] = None
  
imports: from mmdet.registry import DATASETS
  from .xml_style import XMLDataset
label_desc: Use image node_id 1 to create a new VOCDataset object from inherited base classes: XMLDataset with example: obj = VOCDataset()