def GetAsync(keys, **kwargs):
  extra_hook = kwargs.pop('extra_hook', None)
  config = _GetConfigFromKwargs(kwargs)
  keys, multiple = NormalizeAndTypeCheckKeys(keys)

  def local_extra_hook(entities):
    if multiple:
      result = entities
    else:
      if not entities or entities[0] is None:
        raise datastore_errors.EntityNotFoundError()
      result = entities[0]
    if extra_hook:
      return extra_hook(result)
    return result

  return _GetConnection().async_get(config, keys, local_extra_hook)
Get the number of related documents of various types for the artist.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/datastore.py/GetAsync--crossover with--dataset/ETHPy150Open echonest/pyechonest/pyechonest/artist.py/Artist.get_doc_counts