def _handle_no_set_versions(self, consumer):
        """Handle consumers reporting no versions."""
        if isinstance(consumer, AgentConsumer):
            if NON_REPORTING_AGENT_TYPES in consumer.agent_type:
                resources = _import_resources()
                self._versions_by_consumer[consumer] = {
                    resources.QOS_POLICY: '1.0'}
                self._versions[resources.QOS_POLICY].add('1.0')
                return

        if self._versions_by_consumer[consumer]:
            self._needs_recalculation = True
        self._versions_by_consumer[consumer] = {}
dataset/ETHPy150Open openstack/neutron/neutron/api/rpc/callbacks/version_manager.py/ResourceConsumerTracker._handle_no_set_versions/swapped operands of `in`