code: def test_search_registered_models(mock_store):
      mock_store.search_registered_models.return_value = PagedList(
          [RegisteredModel("Model 1"), RegisteredModel("Model 2")], ""
      )
      result = newModelRegistryClient().search_registered_models(
          filter_string="test filter"
      )
      mock_store.search_registered_models.assert_called_with(
          "test filter",
          SEARCH_REGISTERED_MODEL_MAX_RESULTS_DEFAULT,
          None,
          None,
      )
      assert len(result) == 2
      assert result.token == ""
  
      result = newModelRegistryClient().search_registered_models(
          filter_string="another filter",
          max_results=12,
          order_by=["A", "B DESC"],
          page_token="next one",
      )
      mock_store.search_registered_models.assert_called_with(
          "another filter", 12, ["A", "B DESC"], "next one"
      )
      assert len(result) == 2
      assert result.token == ""
  
      mock_store.search_registered_models.return_value = PagedList(
          [
              RegisteredModel("model A"),
              RegisteredModel("Model zz"),
              RegisteredModel("Model b"),
          ],
          "page 2 token",
      )
      result = newModelRegistryClient().search_registered_models(
          max_results=5
      )
      mock_store.search_registered_models.assert_called_with(
          None, 5, None, None
      )
      assert [rm.name for rm in result] == [
          "model A",
          "Model zz",
          "Model b",
      ]
      assert result.token == "page 2 token"
  
imports: from unittest import mock
  from unittest.mock import ANY
  import pytest
  from mlflow.entities.model_registry import ModelVersion, ModelVersionTag, RegisteredModel, RegisteredModelTag
  from mlflow.exceptions import MlflowException
  from mlflow.store.entities.paged_list import PagedList
  from mlflow.store.model_registry import SEARCH_MODEL_VERSION_MAX_RESULTS_DEFAULT, SEARCH_REGISTERED_MODEL_MAX_RESULTS_DEFAULT
  from mlflow.store.model_registry.sqlalchemy_store import SqlAlchemyStore
  from mlflow.tracking._model_registry.client import ModelRegistryClient
label_desc: Use image node_id 9 for calling a global function with example usage: test_search_registered_models(mock_store) without return types