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.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/datastore.py/RunInTransactionCustomRetries