code: def __init__(
      self,
      data_path: str,
      img_mode,
      pre_processes,
      filter_keys,
      ignore_tags,
      transform=None,
      **kwargs,
  ):
      self.load_char_annotation = kwargs["load_char_annotation"]
      self.expand_one_char = kwargs["expand_one_char"]
      super().__init__(
          data_path,
          img_mode,
          pre_processes,
          filter_keys,
          ignore_tags,
          transform,
      )
  
imports: import pathlib
  import os
  import cv2
  import numpy
  import scipy.io
  from tqdm.auto import tqdm
  from base import BaseDataSet
  from utils import order_points_clockwise, get_datalist, load, expand_polygon
label_desc: Use image node_id 1 to create a new DetDataset object from inherited base classes: BaseDataSet with example: obj = DetDataset(data_path, img_mode, pre_processes, filter_keys, ignore_tags, transform)