code: def _run_staged(state):
      while True:
          runs = _safe_next_runs(state)
          if not runs:
              break
          _start_runs(runs, state)
      if not state.logged_waiting:
          _log_waiting(state)
  
imports: import logging
  import os
  import signal
  import time
  from guild import lock
  from guild import op_util
  from guild import util
  from guild import var
label_desc: Use image node_id 7 for calling a global function with example usage: _run_staged(state) without return types