def example_decorator(name, function):
 def wrapped_func(*args, **kwarg):
  CALLED_FUNCTION.append(name)
  return function(*args, **kwarg)
 return wrapped_func

def example_decorator ( name , function ) : def wrapped_func ( * args , ** kwarg ) : CALLED_FUNCTION . append ( name ) return function ( * args , ** kwarg ) return wrapped_func
decorator for notify which is used from utils .