code: def test_search_model_versions_order_by_simple(store):
      # create some model versions
      names = ["RM1", "RM2", "RM3", "RM4", "RM1", "RM4"]
      sources = ["A"] * 3 + ["B"] * 3
      run_ids = [uuid.uuid4().hex for _ in range(6)]
      for name in set(names):
          store.create_registered_model(name)
      for i in range(6):
          _create_model_version(
              store, name=names[i], source=sources[i], run_id=run_ids[i]
          )
          time.sleep(
              0.001
          )  # sleep for windows fs timestamp precision issues
  
      # by default order by last_updated_timestamp DESC
      mvs = _search_model_versions(store).to_list()
      assert [mv.name for mv in mvs] == names[::-1]
      assert [mv.version for mv in mvs] == [2, 2, 1, 1, 1, 1]
  
      # order by name DESC
      mvs = _search_model_versions(store, order_by=["name DESC"])
      assert [mv.name for mv in mvs] == sorted(names)[::-1]
      assert [mv.version for mv in mvs] == [2, 1, 1, 1, 2, 1]
  
      # order by version DESC
      mvs = _search_model_versions(
          store, order_by=["version_number DESC"]
      )
      assert [mv.name for mv in mvs] == [
          "RM1",
          "RM4",
          "RM1",
          "RM2",
          "RM3",
          "RM4",
      ]
      assert [mv.version for mv in mvs] == [2, 2, 1, 1, 1, 1]
  
      # order by creation_timestamp DESC
      mvs = _search_model_versions(
          store, order_by=["creation_timestamp DESC"]
      )
      assert [mv.name for mv in mvs] == names[::-1]
      assert [mv.version for mv in mvs] == [2, 2, 1, 1, 1, 1]
  
      # order by last_updated_timestamp ASC
      store.update_model_version(names[0], 1, "latest updated")
      mvs = _search_model_versions(
          store, order_by=["last_updated_timestamp ASC"]
      )
      assert mvs[-1].name == names[0]
      assert mvs[-1].version == 1
  
imports: import time
  import uuid
  from typing import List, NamedTuple
  from unittest import mock
  import pytest
  from mlflow.entities.model_registry import ModelVersion, ModelVersionTag, RegisteredModelTag
  from mlflow.exceptions import MlflowException
  from mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE, RESOURCE_DOES_NOT_EXIST, ErrorCode
  from mlflow.store.model_registry.file_store import FileStore
  from mlflow.utils.file_utils import path_to_local_file_uri, write_yaml
  from mlflow.utils.time import get_current_time_millis
  from tests.helper_functions import random_int, random_str
label_desc: Use image node_id 27 for calling a global function with example usage: test_search_model_versions_order_by_simple(store) without return types