code: def get_model(name: str) -> type:
      """Returns a registered class object with the name given in the string."""
      if name not in _REGISTRY:
          if ":" not in name:
              raise ConfigError(
                  "Model {} is not registered.".format(name)
              )
          return cls_from_str(name)
      return cls_from_str(_REGISTRY[name])
  
file_path: DeepPavlov/deeppavlov/core/common/registry.py
imports: import importlib
  import json
  from logging import getLogger
  from pathlib import Path
  from deeppavlov.core.common.errors import ConfigError
label_desc: Use image node_id 4 for calling a global function with example usage: get_model(name) and returns: cls_from_str, cls_from_str