def METHOD_NAME(self, node):
    self.id = node.id
    self.index = node.index
    self.nesting = node.nesting
    self.parent = node.parent
    self.children = node.children
    self.status = node.status
    for child in self.children:
        child.parent = self
    if self.parent is not None:
        self.parent.replace_node(self.index, self)