code: def get_transforms(transforms_config):
      tr_list = []
      for item in transforms_config:
          if "args" not in item:
              args = {}
          else:
              args = item["args"]
          cls = getattr(transforms, item["type"])(**args)
          tr_list.append(cls)
      tr_list = transforms.Compose(tr_list)
      return tr_list
  
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 2 for calling a global function with example usage: get_transforms(transforms_config) and returns: tr_list