def foo(func): def bar(): func = (lambda x: x)(func) return func return bar @foo def test(): pass test()