def METHOD_NAME(self):
    api = self.parse("""
        typedef HPy (*HPyFunc_foo)(HPyContext *ctx, HPy arg, int xy);
        typedef HPy (*HPyFunc_bar)(HPyContext *ctx, HPy, int);
    """)
    got = autogen_cpython_hpyfunc_trampoline_h(api).generate()
    exp = r"""
        typedef HPy (*_HPyCFunction_FOO)(HPyContext *, HPy, int);
        #define _HPyFunc_TRAMPOLINE_HPyFunc_FOO(SYM, IMPL) \
            static cpy_PyObject *SYM(cpy_PyObject *arg, int xy) \
            { \
                _HPyCFunction_FOO func = (_HPyCFunction_FOO)IMPL; \
                return _h2py(func(_HPyGetContext(), _py2h(arg), xy)); \
            }
        typedef HPy (*_HPyCFunction_BAR)(HPyContext *, HPy, int);
        #define _HPyFunc_TRAMPOLINE_HPyFunc_BAR(SYM, IMPL) \
            static cpy_PyObject *SYM(cpy_PyObject *arg0, int arg1) \
            { \
                _HPyCFunction_BAR func = (_HPyCFunction_BAR)IMPL; \
                return _h2py(func(_HPyGetContext(), _py2h(arg0), arg1)); \
            }
    """
    assert src_equal(got, exp)