code: def get_model(model_name, pretrained=True):
      cfg_file = get_config_file(model_name)
      cfg = load_config(cfg_file)
      model = create(cfg.architecture)
  
      if pretrained:
          load_weight(model, get_weights_url(model_name))
  
      return model
  
file_path: PaddleDetection/ppdet/model_zoo/model_zoo.py
imports: import os.path
  import pkg_resources
  from ppdet.core.workspace import load_config, create
  from ppdet.utils.checkpoint import load_weight
  from ppdet.utils.download import get_config_path
  from ppdet.utils.logger import setup_logger
label_desc: Use image node_id 4 for calling a global function with example usage: get_model(model_name, pretrained) and returns: model