def detach(self):
        """Detach this node from the tree. It becomes the root of another tree."""
        if self._parent:
            try:
                i = self._parent.index(self)
                del self._parent[i]
            except __HOLE__:
                pass
        self._parent = None
        return self
dataset/ETHPy150Open kdart/pycopia/XML/pycopia/XML/POM.py/ElementNode.detach