code: def _open(run, args):
      to_open = _path(run, args)
      open_f = _open_f(args)
      try:
          open_f(to_open)
      except Exception as e:
          if log.getEffectiveLevel() <= logging.DEBUG:
              log.exception("opening %s", to_open)
          cli.error(e)
  
imports: import logging
  import os
  import shlex
  import shutil
  import subprocess
  import sys
  from guild import cli
  from guild import cmd_impl_support
  from guild import run_util
  from guild import util
  from .None import runs_impl
label_desc: Use image node_id 3 for calling a global function with example usage: _open(run, args) without return types