code: def get_scheduler_from_preset(scheduler_cls):
      scheduler_cls = scheduler_cls.lower()
      if scheduler_cls not in schedulers.keys():
          raise ValueError(
              f"Required key 'scheduler' in hyperparameter_tune_kwargs must be one of the "
              f"values {schedulers.keys()}, but was instead: {scheduler_cls}"
          )
      scheduler_cls = schedulers.get(scheduler_cls)
      return scheduler_cls
  
file_path: autogluon/core/src/autogluon/core/scheduler/scheduler_factory.py
imports: import copy
  import inspect
  import logging
  from ..utils.utils import setup_compute
  from .seq_scheduler import LocalSequentialScheduler
label_desc: Use image node_id 3 for calling a global function with example usage: get_scheduler_from_preset(scheduler_cls) and returns: scheduler_cls