def METHOD_NAME(make_stubber, count, error_code):
    iam_stubber = make_stubber(account_wrapper.iam.meta.client)
    providers = [
        f"arn:aws:iam::1111222333:saml-provider/provider-{ind}" for ind in range(3)]
    iam_stubber.stub_list_saml_providers(providers, error_code=error_code)
    if error_code is None:
        account_wrapper.list_saml_providers(3)
    else:
        with pytest.raises(ClientError) as exc_info:
            account_wrapper.list_saml_providers(3)
        assert exc_info.value.response['Error']['Code'] == error_code