code: def _path(run, args):
      if args.output:
          _check_non_output_args(args)
          return run.guild_path("output")
      if not args.path:
          cli.error(
              "-p / --path is required unless --output is specified"
          )
      if os.path.isabs(args.path):
          cli.error(
              "PATH must be relative\nTry 'guild cat --help' for more information."
          )
      path_root = _path_root(args, run)
      return os.path.join(path_root, args.path)
  
file_path: guildai/guild/commands/cat_impl.py
imports: import logging
  import os
  import sys
  import click
  from guild import cli
  from guild import run_util
  from .None import remote_impl_support
  from .None import runs_impl
label_desc: Use image node_id 3 for calling a global function with example usage: _path(run, args) and returns: os, run