code: def _front_matter_for_file(path):
      front_matter = []
      reading = False
      with open(path) as f:
          for line in f.readlines():
              if line.startswith("%%| "):
                  reading = True
                  front_matter.append(line[4:])
              else:
                  if reading:
                      break
      return "".join(front_matter)
  
file_path: guildai/examples/erlang-plugin/erlang_guild/plugins/escript.py
imports: import os
  import yaml
  from guild import config
  from guild import model
  from guild import model_proxy
  from guild import plugin
label_desc: Use image node_id 2 for calling a global function with example usage: _front_matter_for_file(path) and returns: str