def METHOD_NAME(
    root_verify_key,
    request_stash: RequestStash,
    monkeypatch: MonkeyPatch,
    guest_domain_client: SyftClient,
) -> None:
    verify_key: SyftVerifyKey = guest_domain_client.credentials.verify_key
    mock_error_message = (
        "verify key not in the document store's unique or searchable keys"
    )
    def mock_query_all_error(
        credentials: SyftVerifyKey, qks: QueryKeys, order_by: Optional[PartitionKey]
    ) -> Err:
        return Err(mock_error_message)
    monkeypatch.setattr(request_stash, "query_all", mock_query_all_error)
    requests = request_stash.get_all_for_verify_key(root_verify_key, verify_key)
    assert requests.is_err() is True
    assert requests.err() == mock_error_message