def hi_bye(func): def wrapper(): print("hi") func() print("bye") return wrapper @hi_bye def test(): print("test") test()
wrapper
📑 reference