code: def _check_activity(last_activity, log):
      pids = _guild_ops()
      now = _now_seconds()
      log_f = _log_function(log, now, pids)
      if pids:
          log_f("Active runs (pids): %s", ",".join(map(str, pids)))
          return now
      log_f("No runs for %s", _format_duration(now - last_activity))
      return last_activity
  
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 5 for calling a global function with example usage: _check_activity(last_activity, log) and returns: last_activity, now