def insert(self, position, text):
        "Insert a new node with text at position in current node."
        node = self.__tree.insert(self.__node, position, text=text)
        # PATCH: Store extra data about node.
        if TrimDir.SIZE:
            self.__tree.nodes[node] = dict()
        return Node(self.__tree, node)
Insert a new node with text at position in current node.
recipes/Python/577635_Directory_Pruner_3/recipe-577635.py