code: def build_model(name, pretrained=False, cfg_list=()):
      """Constructs a predefined model (note: loads global config as well)."""
      # Load the config
      reset_cfg()
      config_file = get_config_file(name)
      load_cfg(config_file)
      cfg.merge_from_list(cfg_list)
      # Construct model
      model = builders.build_model()
      # Load pretrained weights
      if pretrained:
          weights_file = get_weights_file(name)
          cp.load_checkpoint(weights_file, model)
      return model
  
file_path: pycls/pycls/models/model_zoo.py
imports: import os
  import pycls.core.builders
  import pycls.core.checkpoint
  from pycls.core.config import cfg, load_cfg, reset_cfg
  from pycls.core.io import cache_url
label_desc: Use image node_id 5 for calling a global function with example usage: build_model(name, pretrained, cfg_list) and returns: model