def remove_handler(self, callback=None):
        """Removes a handler from the list of registered handlers."""
        if not callback:  # remove all
            self.registered_handlers = []
            return

        if self.registered_handlers in callback:
            self.registered_handlers.remove(callback)
dataset/ETHPy150Open missionpinball/mpf/mpf/devices/matrix_light.py/MatrixLight.remove_handler/swapped operands of `in`