code: def register_recommender(name: str) -> Callable[[R], R]:
      """
      Registers the provided class with the given name in the global recommender
      registry.
      """
  
      def register(cls: R) -> R:
          RECOMMENDER_REGISTRY[name] = cls
          return cls
  
      return register
  
imports: from typing import Any, Callable, Dict, Type, TypeVar
  from tsbench.config import EnsembleConfig, ModelConfig
  from ._base import Recommender
label_desc: Use image node_id 1 for calling a global function with example usage: register_recommender(name) and returns: register, cls