code: def save_config_to_yaml(config):
      from contextlib import redirect_stdout
  
      saved_yaml_path = os.path.join(config.logging.path, "config.yaml")
      with open(saved_yaml_path, "w") as f:
          with redirect_stdout(f):
              print(config.dump())
      logger.info("Config saved as {}".format(saved_yaml_path))
  
file_path: OpenPrompt/openprompt/config.py
imports: import argparse
  from yacs.config import CfgNode
  import sys
  from openprompt.utils.utils import check_config_conflicts
  from .default_config import get_default_config
  from openprompt.utils.logging import logger
  import os
label_desc: Use image node_id 7 for calling a global function with example usage: save_config_to_yaml(config) without return types