def EntityGroupKind(key):
  return key.path().element(0).type()
Given entity primary key as Reference Proto, returns kind of entity group.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/analytics/entity.py/EntityGroupKind