code: def _guildfile(path):
      from guild import guildfile
  
      try:
          return guildfile.for_file(path)
      except guildfile.GuildfileError as e:
          cli.error(str(e))
  
imports: import logging
  import os
  import typing
  from guild import cli
  from guild import click_util
  from guild import config
label_desc: Use image node_id 12 for calling a global function with example usage: _guildfile(path) and returns: guildfile