def METHOD_NAME(func):
    newnode = funcnode_with_new_name(func.node, 'debug_%s' % func.ctx_name())
    maybe_make_void(func, newnode)
    # fix all the types
    visitor = HPy_2_DHPy_Visitor()
    visitor.visit(newnode)
    return newnode