code: def build(self, args, root=True):
      if args is None or len(args) == 0:
          return None
      elif isinstance(args, list):
          if root:
              sequence = [
                  self.build(value, root=False) for value in args
              ]
              return iaa.Sequential(sequence)
          else:
              return getattr(iaa, args[0])(
                  *[self.to_tuple_if_list(a) for a in args[1:]]
              )
      elif isinstance(args, dict):
          cls = getattr(iaa, args["type"])
          return cls(
              **{
                  k: self.to_tuple_if_list(v)
                  for k, v in args["args"].items()
              }
          )
      else:
          raise RuntimeError("unknown augmenter arg: " + str(args))
  
file_path: PaddleOCR/benchmark/PaddleOCR_DBNet/data_loader/modules/iaa_augment.py
imports: import numpy
  import imgaug
  import imgaug.augmenters
label_desc: Use image node_id 2 for calling the AugmenterBuilder obj's underlying member method code with example usage: obj.build(args, root) and returns: None, iaa, getattr, cls