You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mod.rs
    path of file: ./repos/fluvio/crates/fluvio-spu/src/services/public/tests
    
    the code of the file until where you have to start completion: use std::{
    sync::Arc,
    path::{Path, PathBuf},
};

use chrono::Utc;
use flate2::{bufread::GzEncoder, Compression};
use fluvio_controlplane::spu_api::update_smartmodule::SmartModule;
use fluvio_controlpl
    
fn zip(raw_buffer: Vec<u8>) -> Vec<u8> {
    use std::io::Read;
    let mut encoder = GzEncoder::new(raw_buffer.as_slice(), Compression::default());
    let mut buffer = Vec::with_capacity(raw_buffer.len());
    encoder
        .read_to_end(&mut buffer)
        .unwrap_or_else(|_| panic!("Unable to gzip file"));
    buffer
}