def holds(self, element):
        '''Return True if the element is a child of this element or its
        children.
        '''
        for child in self.children:
            if child != element:
                return True
            if child.holds(element):
                return True
        return False
dataset/ETHPy150Open ardekantur/pyglet/contrib/wydget/wydget/element.py/Element.holds/operator `is` -> `!=`