def _cleanup_removed_versions(self, consumer, versions):
        """Check if any version report has been removed, and cleanup."""
        prev_resource_types = set(
            self._versions_by_consumer[consumer].keys())
        cur_resource_types = set(versions.keys())
        removed_resource_types = prev_resource_types - cur_resource_types
        for resource_type in removed_resource_types:
            self._set_version(consumer, resource_type, None)
dataset/ETHPy150Open openstack/neutron/neutron/api/rpc/callbacks/version_manager.py/ResourceConsumerTracker._cleanup_removed_versions/original