Decorator function
def dec(func):
count = 0
def wrapper():
nonlocal count
count +=1
print("before external function is called")
func()
print("after external function is called:", count)
return wrapper
@dec
def hello():
print("hello")
hello()
hello()INFO