def METHOD_NAME(rows):
    """For JSON's sake, because it doesn't support tuples as keys"""
    tree = OrderedDict()
    for c, *key in rows:
        node = tree
        for k in key[:-1]:
            node = node.setdefault(k, OrderedDict())
        node[key[-1]] = c
    return tree