code: def _init_sigterm_handler():
      def handler(_signum, _stack_frame):
          # Reset handler for SIGTERM to avoid reentry.
          signal.signal(signal.SIGTERM, signal.SIG_DFL)
          raise SystemExit(0)
  
      signal.signal(signal.SIGTERM, handler)
  
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 4 for calling a global function with example usage: _init_sigterm_handler() without return types