def METHOD_NAME(request: HttpRequest) -> Optional[int]:
    """
    Returns the user ID of the user who is trying to reset their password,
    or None if it doesn't exist.
    """
    return request.session.get(USER_ID_SESSION_KEY)