def METHOD_NAME(redirect_url, request, verification_key):
    """Returns the verification_url"""
    # get verification URL based on host
    verification_url_map = getattr(settings, "VERIFICATION_URL", {})
    host = request.get_host()
    url = (
        (
            verification_url_map
            and host in verification_url_map
            and verification_url_map[host]
        )
        or (
            verification_url_map
            and "*" in verification_url_map
            and verification_url_map["*"]
        )
        or reverse("userprofile-verify-email", request=request)
    )
    query_params_dict = {"verification_key": verification_key}
    if redirect_url:
        query_params_dict.update({"redirect_url": redirect_url})
    query_params_string = urlencode(query_params_dict)
    verification_url = f"{url}?{query_params_string}"
    return verification_url