def AllocateIdsAsync(model_key, size=None, **kwargs):
  max = kwargs.pop('max', None)
  config = _GetConfigFromKwargs(kwargs)
  if getattr(config, 'read_policy', None) == EVENTUAL_CONSISTENCY:
    raise datastore_errors.BadRequestError(
        'read_policy is only supported on read operations.')
  keys, _ = NormalizeAndTypeCheckKeys(model_key)

  if len(keys) > 1:
    raise datastore_errors.BadArgumentError(
        'Cannot allocate IDs for more than one model key at a time')

  rpc = _GetConnection().async_allocate_ids(config, keys[0], size, max)
  return rpc
get the data url for a specified endpoint_type, currently supported types
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/datastore.py/AllocateIdsAsync--crossover with--dataset/ETHPy150Open jut-io/jut-python-tools/jut/api/data_engine.py/get_data_url