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: format.rs
    path of file: ./repos/swc/crates/swc_ecma_minifier/tests
    
    the code of the file until where you have to start completion: use swc_common::{sync::Lrc, FileName, Mark, SourceMap};
use swc_ecma_ast::*;
use swc_ecma_codegen::{
    text_writer::{omit_trailing_semi, JsWriter, WriteJs},
    Config, Emitter,
};
use swc_ecma_minifier::{optimize, option::ExtraOptions};
use swc_ecma_parser::{parse_file_as_module, Syntax};
use testin
    
fn assert_format(src: &str, expected: &str, opts: Config) {
    testing::run_test2(false, |cm, _| {
        let fm = cm.new_source_file(FileName::Anon, src.into());

        let program = parse_file_as_module(
            &fm,
            Syntax::Es(Default::default()),
            Default::default(),
            None,
            &mut vec![],
        )
        .unwrap();

        let unresolved_mark = Mark::new();
        let top_level_mark = Mark::new();

        let m = optimize(
            program.into(),
            cm.clone(),
            None,
            None,
            &Default::default(),
            &ExtraOptions {
                unresolved_mark,
                top_level_mark,
            },
        )
        .expect_module();

        let actual = print(cm, &m, opts);
        assert_eq!(
            NormalizedOutput::from(actual),
            NormalizedOutput::from(expected.to_owned())
        );
        Ok(())
    })
    .unwrap()
}