parameters: (self)
return_statement: return (
              self._root.__transaction is not None
              and self._root.__transaction.is_active
          )
docstring: Return True if a transaction is in progress.
docstring_summary: Return True if a transaction is in progress.
docstring_tokens: Return True if a transaction is in progress .
function: def in_transaction(self):
          """Return True if a transaction is in progress."""
          return (
              self._root.__transaction is not None
              and self._root.__transaction.is_active
          )
function_tokens: def in_transaction ( self ) : return ( self . _root . __transaction is not None and self . _root . __transaction . is_active )