class_docstr: XML dataset for detection.
  
  Args:
      img_subdir (str): Subdir where images are stored. Default: JPEGImages.
      ann_subdir (str): Subdir where annotations are. Default: Annotations.
      backend_args (dict, optional): Arguments to instantiate the
          corresponding backend. Defaults to None.
code: def __init__(
      self,
      img_subdir: str = "JPEGImages",
      ann_subdir: str = "Annotations",
      **kwargs,
  ) -> None:
      self.img_subdir = img_subdir
      self.ann_subdir = ann_subdir
      super().__init__(**kwargs)
  
file_path: mmdetection/mmdet/datasets/xml_style.py
imports: import os.path
  import xml.etree.ElementTree
  from typing import List, Optional, Union
  import mmcv
  from mmengine.fileio import get, get_local_path, list_from_file
  from mmdet.registry import DATASETS
  from .base_det_dataset import BaseDetDataset
label_desc: Use image node_id 1 to create a new XMLDataset object from inherited base classes: BaseDetDataset with example: obj = XMLDataset(img_subdir, ann_subdir)