code: def register_surrogate(name: str) -> Callable[[S], S]:
      """
      Registers the provided class with the given name in the global surrogate
      registry.
      """
  
      def register(cls: S) -> S:
          SURROGATE_REGISTRY[name] = cls
          return cls
  
      return register
  
imports: from typing import Any, Callable, Dict, List, Optional, Type, TypeVar
  from tsbench.config import EnsembleConfig, ModelConfig
  from tsbench.evaluations.tracking import EnsembleTracker, ModelTracker
  from ._base import DatasetFeaturesMixin, Surrogate
label_desc: Use image node_id 1 for calling a global function with example usage: register_surrogate(name) and returns: register, cls