def RunInTransactionCustomRetries(retries, function, *args, **kwargs):
 options = datastore_rpc.TransactionOptions(retries=retries)
 return RunInTransactionOptions(options, function, *args, **kwargs)

def RunInTransactionCustomRetries ( retries , function , * args , ** kwargs ) : options = datastore_rpc . TransactionOptions ( retries = retries ) return RunInTransactionOptions ( options , function , * args , ** kwargs )
runs a function inside a datastore transaction .