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: webpack.rs
    path of file: ./repos/wasm-bindgen/crates/example-tests/tests
    
    the code of the file until where you have to start completion: use std::fs;
use std::io::ErrorKind;
use std::process::Command;
us
    
async fn test_webpack_example(name: &str) -> anyhow::Result<()> {
    test_example(name, || {
        let manifest_dir = manifest_dir();
        let path = example_dir(name);

        fn allow_already_exists(e: io::Error) -> io::Result<()> {
            if e.kind() == ErrorKind::AlreadyExists {
                Ok(())
            } else {
                Err(e)
            }
        }

        // All of the examples have the same dependencies, so we can just install
        // to the root `node_modules` once, since Node resolves packages from any
        // outer directories as well as the one containing the `package.json`.
        static INSTALL: Once = Once::new();
        INSTALL.call_once(|| {
            fs::copy(
                manifest_dir.join("_package.json"),
                manifest_dir.join("package.json"),
            )
            .map(|_| ())
            .or_else(allow_already_exists)
            .unwrap();

            run(Command::new("npm").arg("install").current_dir(manifest_dir)).unwrap();

            fs::remove_file(manifest_dir.join("package.json")).unwrap();
        });

        // Build the example.
        run(Command::new("npm")
            .arg("run")
            .arg("build")
            .current_dir(&path))?;

        Ok(path.join("dist"))
    })
    .await
}