code: def _run(args, log):
      log.info("%s started with timeout = %im", TITLE, args.timeout)
      if args.dont_shutdown:
          log.info(
              "%s WILL NOT SHUTDOWN system because --dont-shutdown was used",
              TITLE,
          )
      last_activity = _now_seconds()
      while True:
          try:
              last_activity = _check_activity(last_activity, log)
              if _timeout(last_activity, args.timeout):
                  _shutdown(args, log)
                  break
              time.sleep(INTERVAL)
          except KeyboardInterrupt:
              break
      log.info("Stopping")
  
file_path: guildai/guild/commands/shutdown_timer_impl.py
imports: import subprocess
  import time
  import psutil
  from .None import service_impl_support
label_desc: Use image node_id 4 for calling a global function with example usage: _run(args, log) without return types