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: synthetic.rs
    path of file: ./repos/boa/examples/src/bin
    
    the code of the file until where you have to start completion: // This example implements a synthetic Rust module that is exposed to JS code.
// This mirrors the `modules.rs` example but uses synthetic modules instead.

use std::path::PathBuf;
use std::rc::Rc;
use std::{error::Error, path::Path};

us
    
fn create_operations_module(context: &mut Context) -> Module {
    // We first create the function objects that will be exported by the module. More
    // on that below.
    let sum = FunctionObjectBuilder::new(
        context.realm(),
        NativeFunction::from_fn_ptr(|_, args, ctx| {
            args.get_or_undefined(0).add(args.get_or_undefined(1), ctx)
        }),
    )
    .length(2)
    .name(js_string!("sum"))
    .build();
    let sub = FunctionObjectBuilder::new(
        context.realm(),
        NativeFunction::from_fn_ptr(|_, args, ctx| {
            args.get_or_undefined(0).sub(args.get_or_undefined(1), ctx)
        }),
    )
    .length(2)
    .name(js_string!("sub"))
    .build();
    let mult = FunctionObjectBuilder::new(
        context.realm(),
        NativeFunction::from_fn_ptr(|_, args, ctx| {
            args.get_or_undefined(0).mul(args.get_or_undefined(1), ctx)
        }),
    )
    .length(2)
    .name(js_string!("mult"))
    .build();
    let div = FunctionObjectBuilder::new(
        context.realm(),
        NativeFunction::from_fn_ptr(|_, args, ctx| {
            args.get_or_undefined(0).div(args.get_or_undefined(1), ctx)
        }),
    )
    .length(2)
    .name(js_string!("div"))
    .build();
    let sqrt = FunctionObjectBuilder::new(
        context.realm(),
        NativeFunction::from_fn_ptr(|_, args, ctx| {
            let a = args.get_or_undefined(0).to_number(ctx)?;
            Ok(JsValue::from(a.sqrt()))
        }),
    )
    .length(1)
    .name(js_string!("sqrt"))
    .build();

    Module::synthetic(
        // Make sure to list all exports beforehand.
        &[
            js_string!("sum"),
            js_string!("sub"),
            js_string!("mult"),
            js_string!("div"),
            js_string!("sqrt"),
        ],
        // The initializer is evaluated every time a module imports this synthetic module,
        // so we avoid creating duplicate objects by capturing and cloning them instead.
        SyntheticModuleInitializer::from_copy_closure_with_captures(
            |module, fns, _| {
                println!("Running initializer!");
                module.set_export(&js_string!("sum"), fns.0.clone().into())?;
                module.set_export(&js_string!("sub"), fns.1.clone().into())?;
                module.set_export(&js_string!("mult"), fns.2.clone().into())?;
                module.set_export(&js_string!("div"), fns.3.clone().into())?;
                module.set_export(&js_string!("sqrt"), fns.4.clone().into())?;
                Ok(())
            },
            (sum, sub, mult, div, sqrt),
        ),
        None,
        context,
    )
}