code: def __init__(
      self,
      data_path: str,
      img_mode,
      pre_processes,
      filter_keys,
      ignore_tags,
      transform=None,
      target_transform=None,
  ):
      assert img_mode in ["RGB", "BRG", "GRAY"]
      self.ignore_tags = ignore_tags
      self.data_list = self.load_data(data_path)
      item_keys = [
          "img_path",
          "img_name",
          "text_polys",
          "texts",
          "ignore_tags",
      ]
      for item in item_keys:
          assert (
              item in self.data_list[0]
          ), "data_list from load_data must contains {}".format(
              item_keys
          )
      self.img_mode = img_mode
      self.filter_keys = filter_keys
      self.transform = transform
      self.target_transform = target_transform
      self._init_pre_processes(pre_processes)
  
file_path: PaddleOCR/benchmark/PaddleOCR_DBNet/base/base_dataset.py
imports: import copy
  from paddle.io import Dataset
  from data_loader.modules import *
label_desc: Use image node_id 1 to create a new BaseDataSet object from inherited base classes: Dataset with example: obj = BaseDataSet(data_path, img_mode, pre_processes, filter_keys, ignore_tags, transform, target_transform)