code: def _proc_wait_with_run_output(
      proc, run, quiet, output_summary, stop_after
  ):
      with _RunOutput(run, proc, quiet, output_summary):
          return _proc_wait(proc, stop_after)
  
imports: import logging
  import os
  import subprocess
  import time
  from guild import config
  from guild import exit_code
  from guild import log
  from guild import op_dep
  from guild import op_util
  from guild import run
  from guild import util
label_desc: Use image node_id 22 for calling a global function with example usage: _proc_wait_with_run_output(proc, run, quiet, output_summary, stop_after) and returns: _proc_wait