def METHOD_NAME(ins, outs):
    aa = ins[0]
    cc = outs[0]
    def _body():
        ib = tvm.tir.ir_builder.create()
        ib.emit(
            tvm.tir.call_extern(
                "int32",
                f"{func_prefix}_{uniq_id}",
                aa.access_ptr("r"),
                cc.access_ptr("w"),
                cc.strides[0],
            )
        )
        return ib.get()
    def _reduce_reset():
        ib = tvm.tir.ir_builder.create()
        ib.emit(
            tvm.tir.call_extern(
                "int32", f"{func_prefix}_reset_{uniq_id}", cc.access_ptr("w"), cc.strides[0]
            )
        )
        return ib.get()
    def _reduce_update():
        return _body()
    return _body(), _reduce_reset(), _reduce_update()