code: def test_with_latest_model_versions():
      name = random_str()
      mvd_1 = ModelVersion(
          name,
          "1",
          1000,
          2000,
          "version 1",
          "user 1",
          "Production",
          "source 1",
          "run ID 1",
          "PENDING_REGISTRATION",
          "Model version is in production!",
      )
      mvd_2 = ModelVersion(
          name,
          "4",
          1300,
          2002,
          "version 4",
          "user 2",
          "Staging",
          "source 4",
          "run ID 12",
          "READY",
          "Model copied over!",
      )
      as_dict = {
          "name": name,
          "creation_timestamp": 1,
          "last_updated_timestamp": 4000,
          "description": random_str(),
          "latest_versions": [mvd_1, mvd_2],
          "tags": [],
          "aliases": {},
      }
      rmd_1 = RegisteredModel.from_dictionary(as_dict)
      as_dict["tags"] = {}
      assert dict(rmd_1) == as_dict
  
      proto = rmd_1.to_proto()
      assert proto.creation_timestamp == 1
      assert proto.last_updated_timestamp == 4000
      assert {mvd.version for mvd in proto.latest_versions} == {
          "1",
          "4",
      }
      assert {mvd.name for mvd in proto.latest_versions} == {name}
      assert {mvd.current_stage for mvd in proto.latest_versions} == {
          "Production",
          "Staging",
      }
      assert {
          mvd.last_updated_timestamp for mvd in proto.latest_versions
      } == {2000, 2002}
  
      assert {
          mvd.creation_timestamp for mvd in proto.latest_versions
      } == {1300, 1000}
  
file_path: mlflow/tests/entities/model_registry/test_registered_model.py
imports: from mlflow.entities.model_registry import RegisteredModelAlias
  from mlflow.entities.model_registry.model_version import ModelVersion
  from mlflow.entities.model_registry.registered_model import RegisteredModel
  from mlflow.entities.model_registry.registered_model_tag import RegisteredModelTag
  from tests.helper_functions import random_str
label_desc: Use image node_id 3 for calling a global function with example usage: test_with_latest_model_versions() without return types