def wrapper(*args, **kwargs):
    return '<%s> %s </%s>' % (tag, f0(*args, **kwargs), tag)
return wrapper
return dec

@decAny('xxx')
def test2():
    return 'test1XML'
Passing a parameter to the decorator in python