code: def safe_invoke_callback(callback, *args, **kwargs):
      
      # pylint: disable=bare-except
      # We intentionally want to swallow all exceptions.
      try:
          return callback(*args, **kwargs)
      except Exception:
          _LOGGER.exception("Error while executing Future callback.")
docs: Invoke a callback, swallowing and logging any exceptions.