code: def build_model(config):
      config = copy.deepcopy(config)
      if not "name" in config:
          arch = BaseModel(config)
      else:
          name = config.pop("name")
          mod = importlib.import_module(__name__)
          arch = getattr(mod, name)(config)
      return arch
  
file_path: PaddleOCR/ppocr/modeling/architectures/__init__.py
imports: import copy
  import importlib
  from paddle.jit import to_static
  from paddle.static import InputSpec
  from .base_model import BaseModel
  from .distillation_model import DistillationModel
label_desc: Use image node_id 1 for calling a global function with example usage: build_model(config) and returns: arch