def METHOD_NAME(request: Request) -> Optional[Dict[str, bool]]:
    if request.method == HttpMethod.GET:
        return {"has_session": request.session != {}}
    if request.method == HttpMethod.DELETE:
        request.clear_session()
    else:
        request.session["username"] = "moishezuchmir"
    return None