def METHOD_NAME(func):
    func, consts = extract_constants(func)
    mod = tvm.IRModule.from_expr(func)
    func = relay.transform.InferType()(mod)["main"]
    te_graph = lower_to_te(func)
    return te_graph, consts