docs: def intent(method):
      """Helps object methods handle MatrixRequestError.
  
      Args:
          method(function): Object method to be wrapped
  
      Method's object must have _handle_request_exception method that deals with
      specific status codes and errcodes.
      """
  
      def wrapper(self, *args, **kwargs):
          try:
              return method(self, *args, **kwargs)
          except exceptions.MatrixError as e:
              if isinstance(e.original_exception,
                            matrix_client.errors.MatrixRequestError):
                  self._handle_request_exception(e)
                  # May still throw exception for other reasons; not handled
                  return method(self, *args, **kwargs)
              else:
                  raise e
  
      return wrapper