def METHOD_NAME(transaction, force=False):
    """
    Clear any used resources, and return the object
    representing :class:`ITPCStateNotInTransaction`.
    :param transaction: The transaction object from ZODB.
       If this is not the current transaction, does nothing
       unless *force* is true.
    :keyword bool force: Whether to forcibly abort the transaction.
       If this is true, then it doesn't matter if the *transaction* parameter
       matches or not. Also, underlying RDBMS connections should also be closed
       and discarded.
    :return: The previous `ITPCStateNotInTransaction`.
    """