def NormalizeAndTypeCheckKeys(keys):
  keys, multiple = NormalizeAndTypeCheck(keys, (basestring, Entity, Key))

  keys = [_GetCompleteKeyOrError(key) for key in keys]

  return (keys, multiple)
Normalizes and type checks that the given argument is a valid key or keys.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/datastore.py/NormalizeAndTypeCheckKeys