def remove_from_parent(self):
        """
        Removes this frame from its parent, and nulls the parent link
        """
        if self.parent:
            self.parent._children.remove(self)
            self.parent = None

        Removes this frame from its parent, and nulls the parent link
        
pyinstrument/frame.py