code: def __init__(
      self,
      img_dir: str = "",
      ann_dir: str = "annotations",
      split: Optional[str] = None,
      data_root: Optional[str] = None,
  ) -> None:
      self.split = split
      self.data_root = data_root
      self.ann_dir = osp.join(data_root, ann_dir)
      self.img_dir = osp.join(data_root, img_dir)
  
imports: import os.path
  from typing import List, Optional, Tuple, Union
label_desc: Use image node_id 1 to create a new BaseGatherer object  with example: obj = BaseGatherer(img_dir, ann_dir, split, data_root)