code: def test_list_experiments_returns_all_response_pages(
      mock_bindings: mock.MagicMock,
      make_client: Callable[[], Determined],
  ) -> None:
      client = make_client()
      exps_resp = api_responses.sample_get_experiments()
      total_exps = len(exps_resp.experiments)
      page_size = 2
      total_pages = math.ceil(total_exps / page_size)
      if total_pages == 1:
          raise ValueError(
              f"Test expects response to contain > {page_size} objects."
          )
      mock_bindings.side_effect = api_responses.iter_pages(
          pageable_resp=exps_resp,
          pageable_attribute="experiments",
          max_page_size=page_size,
      )
  
      exps = client.list_experiments()
  
      exp_ids = [exp.id for exp in exps]
      expected_exp_ids = [exp_b.id for exp_b in exps_resp.experiments]
      assert exp_ids == expected_exp_ids
  
file_path: determined/harness/tests/determined/common/experimental/test_determined.py
imports: import math
  from typing import Callable, List
  from unittest import mock
  import pytest
  import responses
  from determined.common.api import authentication, errors
  from determined.common.experimental import determined, experiment
  from tests.fixtures import api_responses
label_desc: Use image node_id 11 for calling a global function with example usage: test_list_experiments_returns_all_response_pages(mock_bindings, make_client) without return types