def METHOD_NAME(fx_graph: torch.fx.GraphModule,
                example_inputs: List[torch.Tensor]):
    # get the linalg mlir of the model from torch_mlir
    mlir_module = torch_mlir.compile(
        fx_graph, example_inputs,
        output_type=torch_mlir.OutputType.LINALG_ON_TENSORS)
    # compile the mlir model with aircc
    compiled = backend.compile(mlir_module, pipeline=pipeline,
        verbose=verbose, segment_offset=segment_offset,
        segment_size=segment_size)
    # return a function for invoking the compiled model
    def compiled_callable(*inputs):
        inputs = [x.numpy() for x in inputs]
        loaded = backend.load(compiled)
        result = loaded.forward(*inputs)
        backend.unload()
        return torch.from_numpy(result)
    return compiled_callable