def METHOD_NAME(line):
    graph = json.loads(line)['@graph']
    rec_id = graph[0]['@id'].rsplit('/', 1)[-1]
    return rec_id, tuple(('.'.join(path), value)
            for i, thing in enumerate(graph[1:])
            for path, value in
            find_paths(graph, thing, keys, trail=_start_trail(i, thing)))