def get_root_key_from_entity_key(key):
 tokens = key.split(KIND_SEPARATOR)
 return (tokens[0] + KIND_SEPARATOR)

def get_root_key_from_entity_key ( key ) : tokens = key . split ( KIND_SEPARATOR ) return ( tokens [ 0 ] + KIND_SEPARATOR )
extracts the root key from an entity key .