def METHOD_NAME(self) -> bool:
    """indicates the object is in a state that is known to be acceptable
    for rollback() to be called.
    This does not necessarily mean rollback() will succeed or not raise
    an error, just that there is currently no state detected that indicates
    rollback() would fail or emit warnings.
    It also does not mean that there's a transaction in progress, as
    it is usually safe to call rollback() even if no transaction is
    present.
    .. versionadded:: 1.4.28
    """
    raise NotImplementedError()