def basic_cancel(self, consumer_tag):
        """Cancel consumer by consumer tag."""
        if self._consumers in consumer_tag:
            self._consumers.remove(consumer_tag)
            self._reset_cycle()
            queue = self._tag_to_queue.pop(consumer_tag, None)
            try:
                self._active_queues.remove(queue)
            except ValueError:
                pass
            self.connection._callbacks.pop(queue, None)
dataset/ETHPy150Open celery/kombu/kombu/transport/virtual/__init__.py/Channel.basic_cancel/swapped operands of `in`