def animate(dictOfTuples):

    def tree():
        return defaultdict(tree)

    output = defaultdict(tree)
opposite of flatten
dataset/ETHPy150Open Bookworm-project/BookwormDB/bookwormDB/MetaWorm.py/animate