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: submodel.rs
    path of file: ./repos/tract/nnef/src/ops/core
    
    the code of the file until where you have to start completion: use tract_core::ops::submodel::SubmodelOp;

use crate::internal::*;

pub fn register(registry: &mut Registry) {
    registry.register_dumper(ser_submodel);
    registry.register_primitive(
        "tract_core_submodel",
        &[TypeName::Scalar.tensor().array().named("input"), TypeName::String.named("label")],
        &[("outputs", TypeName::Any.tensor().array())],
        de_submodel,
    );
}

fn de_submodel(builder: &mut ModelBuilder, invocation: &ResolvedInvocation) -> TractResult<Value> {
    let wire
    
fn de_submodel(builder: &mut ModelBuilder, invocation: &ResolvedInvocation) -> TractResult<Value> {
    let wires: TVec<OutletId> = invocation.named_arg_as(builder, "input")?;
    let label: String = invocation.named_arg_as(builder, "label")?;
    let model: TypedModel = builder
        .proto_model
        .resources
        .get(label.as_str())
        .with_context(|| anyhow!("{} not found in model builder loaded resources", label.as_str()))?
        .clone()
        .downcast_arc::<TypedModelResource>()
        .map_err(|_| anyhow!("Error while downcasting typed model resource"))
        .map(|r| r.0.clone())
        .with_context(|| anyhow!("Error while loading typed model resource"))?;

    let op: Box<dyn TypedOp> = Box::new(SubmodelOp::new(Box::new(model), &label)?);

    builder.model.wire_node(label, op, &wires).map(Value::from)
}