users={“ajay”:“manusid”}
def login(fun):
def wrapper(username,password,*args,**kwargs):
if username in users and users[username]==password:
add(*args,**kwargs)
else:
print(“not authenticated”)
return wrapper
def add(a,b):
print(a+b)
add=login(add)
add(“ajay”,“manusid”,1,2)