code: def get_monitor_config(param_dict):
      monitor_dict = {
          key: param_dict.get(key, {})
          for key in ("tensorboard", "wandb", "csv_monitor")
      }
      return DeepSpeedMonitorConfig(**monitor_dict)
  
file_path: DeepSpeed/deepspeed/monitor/config.py
imports: from deepspeed.pydantic_v1 import root_validator
  from deepspeed.runtime.config_utils import DeepSpeedConfigModel
label_desc: Use image node_id 1 for calling a global function with example usage: get_monitor_config(param_dict) and returns: DeepSpeedMonitorConfig