def METHOD_NAME(parser, onnx_file, weigth_file):
    inputs = create_input_tvis(parser)
    outputs = create_output_tvis(parser)
    others = []
    initializer = []
    others = create_middle_tvis(parser)
    initializer = create_initializer_tensors(parser, weigth_file)
    nodes = []
    for op in parser.ops:
        if op.type == "top.Input":
            continue
        if 'shape' in op.attrs:
            node = helper.make_node(op.type, op.opds, op.outputs, **op.attrs)
        else:
            node = helper.make_node(op.type, op.opds, op.outputs, shape=op.shape, **op.attrs)
        nodes.append(node)
    graph_def = helper.make_graph(nodes,
                                  'mlir',
                                  inputs,
                                  outputs,
                                  initializer=initializer,
                                  value_info=others)
    model_def = helper.make_model(graph_def, producer_name="mlir")
    onnx.save(model_def, onnx_file)