def METHOD_NAME(args):
    onnx_model, shape_dict, json_path, params_path = args
    mod, params = relay.frontend.from_onnx(onnx_model, shape_dict, freeze_params=True)
    seq = tvm.transform.Sequential(
        [relay.transform.InferType(), relay.transform.FakeQuantizationToInteger(use_qat=True)]
    )
    mod = seq(mod)
    with open(json_path, "w") as fo:
        fo.write(tvm.ir.save_json(mod))
    with open(params_path, "wb") as fo:
        fo.write(relay.save_param_dict(params))