code: def create_yaml(data, f):
      try:
          with open(f, "w") as yf:
              yaml.dump(data, yf, default_flow_style=False)
      except yaml.YAMLError as exc:
          logger.exception(exc)
          return False
      else:
          return True
  
file_path: igel/igel/utils.py
imports: import json
  import logging
  import joblib
  import pandas
  import yaml
  from igel.configs import configs
  from igel.data import metrics_dict, models_dict
label_desc: Use image node_id 1 for calling a global function with example usage: create_yaml(data, f) and returns: True, False