<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def rollback(self):
 """Drop changes from current transaction."""

        if not self._in_transaction:
            raise NotInTransaction
        self._init_cache()
        self._in_transaction = False