from functools import wrapsdeflogit(func):@wraps(func)defwith_logging(*args,**kwargs):print(func.__name__+" was called")returnfunc(*args, **kwargs)return with_logging@logitdefaddition_func(x):"""Do some math."""return x + xresult =addition_func(4)# Output: addition_func was called