def IsInTransaction():
 return isinstance(_GetConnection(), datastore_rpc.TransactionalConnection)

def IsInTransaction ( ) : return isinstance ( _GetConnection ( ) , datastore_rpc . TransactionalConnection )
determine whether already running in transaction .