code: def run(state):
      log.info("Starting %s", state.name)
      _init(state)
      _init_sigterm_handler()
      try:
          _run(state)
      finally:
          log.info("Stopping %s", state.name)
          _stop(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 1 for calling a global function with example usage: run(state) without return types