def on_touch_up(self, touch):
        if touch.grab_current is not self:
            return
        assert(touch.ud in repr(self))
        touch.ungrab(self)
        _animdelay = self.img._coreimage.anim_delay
        self.img.source = self.background_normal
        self.anim_delay = _animdelay
        self._do_release()
        self.dispatch('on_release')
        return True
dataset/ETHPy150Open kivy/kivy/examples/widgets/sequenced_images/uix/custom_button.py/AnimatedButton.on_touch_up/swapped operands of `in`