pub fn deduplicate_logs<'a>(
        logs: impl Iterator<Item = &'a StorageLogWithPreviousValue>,
    ) -> Vec<StorageLog> {
        let mut deduplicator = Self::new();
        deduplicator.apply(logs);
        let deduplicated_logs = deduplicator.into_modified_key_values();

        deduplicated_logs
            .into_iter()
            .map(|(key, ModifiedSlot { value, .. })| StorageLog::new_write_log(key, value))
            .collect()
    }
Deduplicates the provided logs in isolation.
core/lib/multivm/src/utils/deduplicator.rs