code: def read_yaml(f):
      with open(f) as stream:
          try:
              res = yaml.safe_load(stream)
          except yaml.YAMLError as exc:
              logger.exception(exc)
          else:
              return res
  
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 2 for calling a global function with example usage: read_yaml(f) and returns: res