code: def backoff_handler(debug_only=True):
      """Backoff logging handler for when polling occurs.
  
      Args:
          details (dict): Backoff context containing the number of tries,
              target function currently executing, kwargs, args, value,
              and wait time.
      """
  
      def _wrapped(details):
          message = "[Backoff]: Calling '{}' again in {:f} seconds with {:d} tries so far".format(
              details["target"].__name__,
              details["wait"],
              details["tries"],
          )
          if not debug_only:
              LOGGER.info(message)
          else:
              LOGGER.debug(message)
  
      return _wrapped
  
imports: from streamalert.shared.logger import get_logger
label_desc: Use image node_id 1 for calling a global function with example usage: backoff_handler(debug_only) and returns: _wrapped