code: def main_with_system_exit_detail(args, ctx):
      _check_args(args, ctx)
      _apply_sourcecode_arg(args)
      run = runs_impl.one_run(args, ctx)
      target_dir = args.target_dir or _checked_cwd(run, ctx)
      merge = _init_run_merge(run, target_dir, args)
      _check_replace(merge, args)
      _check_nothing_to_copy(merge, args, ctx)
      _maybe_preview_merge(merge, args)
      run_merge.apply_run_merge(merge, _on_merge_copy)
  
imports: import os
  from guild import cli
  from guild import cmd_impl_support
  from guild import config
  from guild import exit_code
  from guild import run_merge
  from guild import run_util
  from guild import util
  from guild import vcs_util
  from .None import runs_impl
label_desc: Use image node_id 2 for calling a global function with example usage: main_with_system_exit_detail(args, ctx) without return types