code: def test_search_registered_model_flow_paginated(
      client, max_results, filter_string, filter_func
  ):
      names = [f"CreateRMsearch{i:03}" for i in range(29)]
      rms = [client.create_registered_model(name) for name in names]
      for rm in rms:
          assert isinstance(rm, RegisteredModel)
  
      def verify_pagination(rm_getter_with_token, expected_rms):
          result_rms = []
          result = rm_getter_with_token(None)
          result_rms.extend(result)
          while result.token:
              result = rm_getter_with_token(result.token)
              result_rms.extend(result)
          assert [rm.name for rm in expected_rms] == [
              rm.name for rm in result_rms
          ]
  
      verify_pagination(
          lambda tok: client.search_registered_models(
              filter_string=filter_string,
              max_results=max_results,
              page_token=tok,
          ),
          filter(filter_func, 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 5 for calling a global function with example usage: test_search_registered_model_flow_paginated(client, max_results, filter_string, filter_func) without return types