code: def _maybe_log_future_error(f):
      exc = f.exception()
      if exc:
          log.error(
              "exception detail for %s:\n%s", f.key, _format_exc(exc)
          )
  
imports: import argparse
  import logging
  import time
  from guild import _api
  from guild import util
  from .None import gen_queue
label_desc: Use image node_id 17 for calling a global function with example usage: _maybe_log_future_error(f) without return types