def remove_callback(self, event_name, callback_id):
        self.logger.debug(
            "Removing callback %s from callback list for event: %s" %
            (callback_id, event_name)
        )

        if event_name not in self.registered_callbacks:
            self.logger.debug(
                "Callback %s: Event has no callback list" % callback_id
            )
            return

        if callback_id not in self.registered_callbacks[event_name]:
            self.logger.debug(
                "Callback %s: Callback does not exist in callback list" %
                callback_id
            )
            return

        del self.registered_callbacks[event_name][callback_id]

        self.logger.info("Removed callback %s for event: %s",
                         callback_id, event_name)
Removes a callback with a given ID from an event's callback list.
dataset/ETHPy150Open JohnMaguire/Cardinal/cardinal/plugins.py/EventManager.remove_callback