def remove(self):
        key = self._key

        if _key_to_collection not in key:
            raise exc.InvalidRequestError(
                "No listeners found for event %s / %r / %s " %
                (self.target, self.identifier, self.fn)
            )
        dispatch_reg = _key_to_collection.pop(key)

        for collection_ref, listener_ref in dispatch_reg.items():
            collection = collection_ref()
            listener_fn = listener_ref()
            if collection is not None and listener_fn is not None:
                collection.remove(self.with_wrapper(listener_fn))
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/event/registry.py/_EventKey.remove/swapped operands of `not in`