def callback_unregister(self, _id):
        """ Unregisters a callback
            _id: the id of the callback to unregister (CalvinCB and CalvinCBGroup have an attribute id)
        """
        for k, v in self.__callbacks.iteritems():
            if _id in v:
                self.__callbacks[k].pop(_id)
                if not self.__callbacks[k]:
                    del self.__callbacks[k]
                break
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/utilities/calvin_callback.py/CalvinCBClass.callback_unregister/original