def remove_node(self, node):
        # check if the widget is "ok" for a node
        if not isinstance(node, TreeViewNode):
            raise TreeViewException(
                'The node must be a subclass of TreeViewNode')
        parent = node.parent_node
        if parent is not None:
            if node == self._selected_node:
                node.is_selected = False
                self._selected_node = None
            nodes = parent.nodes
            if node in nodes:
                nodes.remove(node)
            parent.is_leaf = not bool(len(nodes))
            node.parent_node = None
            node.funbind('size', self._trigger_layout)
            self._trigger_layout()
If builtin dict is passed as parameter, returns sorted list
dataset/ETHPy150Open kivy/kivy/kivy/uix/treeview.py/TreeView.remove_node--crossover with--dataset/ETHPy150Open reclosedev/requests-cache/requests_cache/core.py/_normalize_parameters