def get_entity_group_version(key):
 eg = EntityGroup.key_for_entity_group(key).get()
 if eg:
  return eg.version
 else:
  return None

def get_entity_group_version ( key ) : eg = EntityGroup . key_for_entity_group ( key ) . get ( ) if eg : return eg . version else : return None
return the version of the entity group containing entity_or_key .