code: def yaml_front_matter(filename):
      fm_s = _yaml_front_matter_s(filename)
      if not fm_s:
          return {}
      return yaml.safe_load(fm_s)
  
file_path: guildai/guild/yaml_util.py
imports: import os
  import re
  import yaml
label_desc: Use image node_id 4 for calling a global function with example usage: yaml_front_matter(filename) and returns: yaml, dict