code: def create_recommender(
      name: str, **kwargs: Any
  ) -> Recommender[ModelConfig]:
      """
      Creates a recommender using the specified parameters.
      """
      assert (
          name in RECOMMENDER_REGISTRY
      ), f"Unknown recommender {name}."
      recommender_cls = RECOMMENDER_REGISTRY[name]
      return recommender_cls(**kwargs)
  
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 3 for calling a global function with example usage: create_recommender(name) and returns: recommender_cls