code: def test_search_model_versions(mock_store):
      mvs = [
          ModelVersion(
              name="Model 1",
              version="1",
              creation_timestamp=123,
              last_updated_timestamp=123,
          ),
          ModelVersion(
              name="Model 1",
              version="2",
              creation_timestamp=124,
              last_updated_timestamp=124,
          ),
          ModelVersion(
              name="Model 2",
              version="1",
              creation_timestamp=125,
              last_updated_timestamp=125,
          ),
      ]
      mock_store.search_model_versions.return_value = PagedList(
          mvs[:2][::-1], ""
      )
      result = newModelRegistryClient().search_model_versions(
          "name=Model 1"
      )
      mock_store.search_model_versions.assert_called_with(
          "name=Model 1",
          SEARCH_MODEL_VERSION_MAX_RESULTS_DEFAULT,
          None,
          None,
      )
      assert result == mvs[:2][::-1]
      assert result.token == ""
  
      mock_store.search_model_versions.return_value = PagedList(
          [mvs[1], mvs[2], mvs[0]], ""
      )
      result = newModelRegistryClient().search_model_versions(
          "version <= 2",
          max_results=2,
          order_by="version DESC",
          page_token="next",
      )
      mock_store.search_model_versions.assert_called_with(
          "version <= 2", 2, "version DESC", "next"
      )
      assert result == [mvs[1], mvs[2], mvs[0]]
      assert result.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 24 for calling a global function with example usage: test_search_model_versions(mock_store) without return types