code: def load_model(
      model_type: str, ckpt_path: str, verbose: bool = False
  ) -> nn.Module:
      net = ALL_MCONFIGS[model_type]["model"](
          **ALL_MCONFIGS[model_type]["params"]
      )
      load_weights(net, ckpt_path, verbose=verbose)
      return net
  
imports: import torch.nn
  from ..mconfigs import ALL_MCONFIGS
  from ..utils.misc import load_weights
label_desc: Use image node_id 1 for calling a global function with example usage: load_model(model_type, ckpt_path, verbose) and returns: net