code: def get_scheduler_config(
      name: str, **kwargs: Optional[Dict[str, Any]]
  ) -> SchedulerParams:
      """
      Convenience method to obtain a SchedulerParams class and partially instantiate it with optimizer kwargs.
  
      Args:
          name: Name of the SchedulerParams in the registry.
          kwargs: Optional kwargs of the optimizer used during instantiation.
  
      Returns:
          a partially instantiated SchedulerParams
      """
      if name not in AVAILABLE_SCHEDULER_PARAMS:
          raise ValueError(
              f"Cannot resolve scheduler parameters '{name}'. Available scheduler parameters are : "
              f"{AVAILABLE_SCHEDULER_PARAMS.keys()}"
          )
  
      scheduler_params = AVAILABLE_SCHEDULER_PARAMS[name]
      scheduler_params = partial(scheduler_params, **kwargs)
      return scheduler_params
  
imports: from dataclasses import dataclass
  from functools import partial
  from typing import Any, Dict, Optional
label_desc: Use image node_id 2 for calling a global function with example usage: get_scheduler_config(name) and returns: scheduler_params