def METHOD_NAME(data):
    graph = data['@graph']
    entities = graph[1:]
    return graph[0]['@id'], _make_ta_key(*entities), (
            (thing, path, leaf) for thing in entities
            for path, leaf in find_leaf_works(thing, []))