code: def save_config_yaml(
      path: str, cfg: DefaultConfigProblemBase
  ) -> None:
      """Saves config as yaml file
  
      Args:
          path: path of file to save to
          cfg: config to save
      """
      """
      Returns a dictionary representation of the config object.
      Protected attributes (starting with an underscore) are not included.
      Nested configs are converted to nested dictionaries.
      """
      cfg_dict = convert_cfg_base_to_nested_dictionary(cfg)
      with open(path, "w") as fp:
          yaml.dump(cfg_dict, fp, indent=4)
  
file_path: h2o-llmstudio/llm_studio/src/utils/config_utils.py
imports: import dataclasses
  import importlib
  from types import ModuleType
  from typing import Any, Dict, List, Type
  import yaml
  from llm_studio.python_configs.base import DefaultConfigProblemBase
  from llm_studio.src.utils.type_annotations import KNOWN_TYPE_ANNOTATIONS
label_desc: Use image node_id 9 for calling a global function with example usage: save_config_yaml(path, cfg) without return types