def METHOD_NAME(self, ops, size=0):
    return self.make_module("""
        HPyDef_METH(f, "f", HPyFunc_VARARGS)
        static HPy f_impl(HPyContext *ctx, HPy self,
                          const HPy *args, size_t nargs)
        {{
            HPyTracker ht;
            HPy result = HPy_NULL;
            ht = HPyTracker_New(ctx, {size});
            if HPy_IsNull(ht) {{
                return HPy_NULL;
            }}
            {ops}
            HPyTracker_Close(ctx, ht);
            if (HPy_IsNull(result))
                result = HPy_Dup(ctx, ctx->h_None);
            return result;
        }}
        @EXPORT(f)
        @INIT
    """.format(ops=ops, size=size))