def run_in_transaction(fn, *args, **kwargs):
    return ndb.transaction(
        lambda: fn(*args, **kwargs),
        xg=True,
        propagation=ndb.TransactionOptions.ALLOWED,
    )


# The NDB toplevel() function. For more details, see
#   https://developers.google.com/appengine/docs/python/ndb/async#intro
Print a debug message
dataset/ETHPy150Open oppia/oppia/core/platform/transactions/gae_transaction_services.py/run_in_transaction--crossover with--dataset/ETHPy150Open aldebaran/qibuild/python/qisys/ui.py/debug