code: def _working_dir(run, args):
      if args.dir:
          return os.path.join(config.cwd(), args.dir)
      assert args.working
      return _working_dir_for_run(run)
  
imports: import logging
  import os
  import re
  import subprocess
  from guild import cli
  from guild import click_util
  from guild import cmd_impl_support
  from guild import config
  from guild import run_util
  from guild import util
  from .None import remote_impl_support
  from .None import runs_impl
label_desc: Use image node_id 9 for calling a global function with example usage: _working_dir(run, args) and returns: _working_dir_for_run, os