code: def _path(run, args):
      if args.output:
          _check_non_output_args(args)
          return run.guild_path("output")
      return os.path.join(_path_root(args, run), args.path or "")
  
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 4 for calling a global function with example usage: _path(run, args) and returns: os, run