def accepts_event(self, event):
        if self.event_types is not None and self.event_types not in event["type"]:
            return False
        if event["type"] == "message":
            return self.narrow_filter(event)
        return True

    # TODO: Refactor so we don't need this function
dataset/ETHPy150Open zulip/zulip/zerver/lib/event_queue.py/ClientDescriptor.accepts_event/swapped operands of `not in`