code: def _verify_pagination(rm_getter_with_token, expected_rms):
      result_rms = []
      result = rm_getter_with_token(None)
      result_rms.extend(result)
      first_page_size = len(result)
      while result.token:
          result = rm_getter_with_token(result.token)
          result_rms.extend(result)
          assert len(result) == first_page_size or result.token == ""
      assert [rm.name for rm in expected_rms] == [
          rm.name for rm in result_rms
      ]
  
imports: import time
  import pytest
  from mlflow import MlflowClient
  from mlflow.entities.model_registry import ModelVersion, RegisteredModel
  from mlflow.exceptions import MlflowException
  from mlflow.utils.os import is_windows
  from mlflow.utils.time import get_current_time_millis
  from tests.tracking.integration_test_utils import _init_server
label_desc: Use image node_id 4 for calling a global function with example usage: _verify_pagination(rm_getter_with_token, expected_rms) without return types