def METHOD_NAME(self, node):
    self._assert_not_frozen()
    with self._node.lock:
        self._nodes.METHOD_NAME(node)
        node._set_parent(None)
        self._node.document.add_patch(
            node_id=self._node.id,
            patch_type=PATCH_TYPE.NODES,
            operation=OPERATION.REMOVE,
            payload=[
                node.id,
            ],
        )