code: def _run(f, log, log_level=None):
      # When daemonized, log.level is 10 for some reason - reset to
      # log_level if provided.
      if log_level is not None:
          log.setLevel(log_level)
      try:
          f(log)
      except:
          log.exception("service callback")
  
imports: import os
  import logging
  import psutil
  from guild import var
  from guild import util
label_desc: Use image node_id 3 for calling a global function with example usage: _run(f, log, log_level) without return types