code: def test_model_version_from_uc_proto():
      expected_model_version = ModelVersion(
          name="name",
          version="1",
          creation_timestamp=1,
          last_updated_timestamp=2,
          description="description",
          user_id="user_id",
          source="source",
          run_id="run_id",
          status="READY",
          status_message="status_message",
          aliases=["alias1", "alias2"],
          tags=[
              ModelVersionTag(key="key1", value="value"),
              ModelVersionTag(key="key2", value=""),
          ],
      )
      uc_proto = ProtoModelVersion(
          name="name",
          version="1",
          creation_timestamp=1,
          last_updated_timestamp=2,
          description="description",
          user_id="user_id",
          source="source",
          run_id="run_id",
          status=ProtoModelVersionStatus.Value("READY"),
          status_message="status_message",
          aliases=[
              ProtoRegisteredModelAlias(alias="alias1", version="1"),
              ProtoRegisteredModelAlias(alias="alias2", version="2"),
          ],
          tags=[
              ProtoModelVersionTag(key="key1", value="value"),
              ProtoModelVersionTag(key="key2", value=""),
          ],
      )
      actual_model_version = model_version_from_uc_proto(uc_proto)
      assert actual_model_version == expected_model_version
  
file_path: mlflow/tests/store/_unity_catalog/model_registry/test_unity_catalog_utils.py
imports: from mlflow.entities.model_registry import ModelVersion, ModelVersionTag, RegisteredModel, RegisteredModelAlias, RegisteredModelTag
  from mlflow.protos.databricks_uc_registry_messages_pb2 import ModelVersion
  from mlflow.protos.databricks_uc_registry_messages_pb2 import ModelVersionStatus
  from mlflow.protos.databricks_uc_registry_messages_pb2 import ModelVersionTag
  from mlflow.protos.databricks_uc_registry_messages_pb2 import RegisteredModel
  from mlflow.protos.databricks_uc_registry_messages_pb2 import RegisteredModelAlias
  from mlflow.protos.databricks_uc_registry_messages_pb2 import RegisteredModelTag
  from mlflow.store._unity_catalog.registry.utils import model_version_from_uc_proto, registered_model_from_uc_proto
label_desc: Use image node_id 1 for calling a global function with example usage: test_model_version_from_uc_proto() without return types