@utils.positional(1)
def transaction(callback, **ctx_options):
  fut = transaction_async(callback, **ctx_options)
  return fut.get_result()
Run a callback in a transaction.
dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py/transaction