code: def register_model(cls: M) -> M:
      """
      Registers the provided class in the global model registry.
      """
      MODEL_REGISTRY[cls.name()] = cls
      return cls
  
imports: from typing import Dict, Type, TypeVar, Any
  import torch.nn
  from lightkit.utils import get_generic_type
  from lightkit.nn import Configurable
  from dataclasses import MISSING
label_desc: Use image node_id 1 for calling a global function with example usage: register_model(cls) and returns: cls