def METHOD_NAME(self):
    mod = self.make_module("""
        HPyDef_METH(f, "f", HPyFunc_O)
        static HPy f_impl(HPyContext *ctx, HPy self, HPy arg)
        {
            HPy dict = HPyDict_New(ctx);
            if (HPy_IsNull(dict))
                return HPy_NULL;
            HPy val = HPyLong_FromLong(ctx, 1234);
            if (HPy_SetItem(ctx, dict, arg, val) == -1)
                return HPy_NULL;
            HPy_Close(ctx, val);
            return dict;
        }
        @EXPORT(f)
        @INIT
    """)
    assert mod.f('hello') == {'hello': 1234}