<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_token_tempfile(token):
 """ Example of function for token update """

    with open(tmp, 'w') as f:
        f.write(json.dumps(token, indent=4))