def add_auth(f):
def add_auth_decorator(*args, **kwargs):<EOL><INDENT>token = get_user_token()<EOL>if '<STR_LIT>' not in kwargs:<EOL><INDENT>kwargs['<STR_LIT>'] = {}<EOL><DEDENT>kwargs['<STR_LIT>']['<STR_LIT>'] = "<STR_LIT>" % token<EOL>return f(*args, **kwargs)<EOL><DEDENT>return add_auth_decorator<EOL>
A decorator that adds the authentication header to requests arguments