code: def get_dataloader(module_config, distributed=False):
      if module_config is None:
          return None
      config = copy.deepcopy(module_config)
      dataset_args = config["dataset"]["args"]
      if "transforms" in dataset_args:
          img_transfroms = get_transforms(
              dataset_args.pop("transforms")
          )
      else:
          img_transfroms = None
      # 创建数据集
      dataset_name = config["dataset"]["type"]
      data_path = dataset_args.pop("data_path")
      if data_path == None:
          return None
  
      data_path = [x for x in data_path if x is not None]
      if len(data_path) == 0:
          return None
      if (
          "collate_fn" not in config["loader"]
          or config["loader"]["collate_fn"] is None
          or len(config["loader"]["collate_fn"]) == 0
      ):
          config["loader"]["collate_fn"] = None
      else:
          config["loader"]["collate_fn"] = eval(
              config["loader"]["collate_fn"]
          )()
  
      _dataset = get_dataset(
          data_path=data_path,
          module_name=dataset_name,
          transform=img_transfroms,
          dataset_args=dataset_args,
      )
      sampler = None
      if distributed:
          # 3）使用DistributedSampler
          batch_sampler = DistributedBatchSampler(
              dataset=_dataset,
              batch_size=config["loader"].pop("batch_size"),
              shuffle=config["loader"].pop("shuffle"),
          )
      else:
          batch_sampler = BatchSampler(
              dataset=_dataset,
              batch_size=config["loader"].pop("batch_size"),
              shuffle=config["loader"].pop("shuffle"),
          )
      loader = DataLoader(
          dataset=_dataset,
          batch_sampler=batch_sampler,
          **config["loader"],
      )
      return loader
  
file_path: PaddleOCR/benchmark/PaddleOCR_DBNet/data_loader/__init__.py
imports: import copy
  import PIL
  import numpy
  import paddle
  from paddle.io import DataLoader, DistributedBatchSampler, BatchSampler
  from paddle.vision import transforms
label_desc: Use image node_id 3 for calling a global function with example usage: get_dataloader(module_config, distributed) and returns: loader, None, None, None