code: def default_parse_optimizer_lr_scheduler_kwargs(
      hparams: Union[Dict, utils.AttrDict]
  ) -> Tuple[OptimizerKwargs, LRSchedulerKwargs]:
      """
      Parse hparams relevant for the optimizer and lr_scheduler and fills in with
      the same defaults as those used by the transformers Trainer.  See the defined dataclasses
      OptimizerKwargs and LRSchedulerKwargs for expected fields and defaults.
  
      Args:
          hparams: hparams to parse.
  
      Returns:
          Configuration for the optimizer and lr scheduler.
      """
      optimizer_args, scheduler_args = parse_dict_to_dataclasses(
          (OptimizerKwargs, LRSchedulerKwargs), hparams
      )
      return optimizer_args, scheduler_args
  
file_path: determined/model_hub/model_hub/huggingface/_config_parser.py
imports: import dataclasses
  from typing import Any, Dict, Optional, Tuple, Union
  from model_hub import utils
label_desc: Use image node_id 3 for calling a global function with example usage: default_parse_optimizer_lr_scheduler_kwargs(hparams) and returns: optimizer_args,  scheduler_args