def METHOD_NAME(
    request: HttpRequest, /, *args: ParamT.args, **kwargs: ParamT.kwargs
) -> HttpResponse:
    role, api_key = get_basic_credentials(request)
    if "@" in role:
        raise JsonableError(_("Must validate with valid Zulip server API key"))
    try:
        remote_server = validate_remote_server(request, role, api_key)
    except JsonableError as e:
        raise UnauthorizedError(e.msg)
    rate_limit_remote_server(request, remote_server, domain="api_by_remote_server")
    return view_func(request, remote_server, *args, **kwargs)