code: def _run(state):
      if state.run_once:
          _run_once(state)
      else:
          _poll(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 3 for calling a global function with example usage: _run(state) without return types