def METHOD_NAME(self, node, before):
    success = False
    new_children_list = []
    for children in self._children:
        if children.link == before:
            new_children_list.append(node)
            success = True
        new_children_list.append(children)
    if success:
        node.parent = self
        self._children_dict[node.link] = node
        self._children = new_children_list
    return success