<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def logout(request):
 """View to forget the user"""

    request.response.headers.extend(forget(request))
    return {'redirect': request.POST.get('came_from', '/')}