def METHOD_NAME(client, response):
    """Verify that we can iterate over a paginated result set."""
    response.get("https://api.mollie.com/v2/customers?limit=5", "customers_list_first")
    response.get("https://api.mollie.com/v2/customers?from=cst_8pknKQJzJa&limit=5", "customers_list_second")
    response.get("https://api.mollie.com/v2/customers?from=cst_prs8JjDf57&limit=5", "customers_list_third")
    response.get("https://api.mollie.com/v2/customers?from=cst_g328m9rhGe&limit=5", "customers_list_fourth")
    response.get("https://api.mollie.com/v2/customers?from=cst_prs8JjDf57&limit=5", "customers_list_third")
    response.get("https://api.mollie.com/v2/customers?from=cst_8pknKQJzJa&limit=5", "customers_list_second")
    response.get("https://api.mollie.com/v2/customers?from=cst_HwBHgJgRAf&limit=5", "customers_list_first")
    customers = client.customers.list(limit=5)
    assert customers.count == 5
    forward_first_id = next(customers).id
    customer_ids = [customer.id for customer in customers]
    while customers.has_next():
        customers = customers.get_next()
        for customer in customers:
            customer_ids.append(customer.id)
    assert len(customer_ids) == 17, "Unexpected number of customers"
    assert len(set(customer_ids)) == 17, "Unexpected number of unique customers"
    # now reverse the behaviour
    while customers.has_previous():
        customers = customers.get_previous()
    reverse_last_id = next(customers).id
    assert (
        forward_first_id == reverse_last_id
    ), "Expected the first customer of the first page to be stable, but it wasn't"