code: def test_delete_model_version_deletes_alias(store):
      model_name = "DeleteModelVersionDeletesAlias_TestMod"
      _setup_and_test_aliases(store, model_name)
      store.delete_model_version(model_name, 2)
      model = store.get_registered_model(model_name)
      assert model.aliases == {}
      with pytest.raises(
          MlflowException,
          match=r"Registered model alias test_alias not found.",
      ):
          store.get_model_version_by_alias(model_name, "test_alias")
  
imports: import time
  import uuid
  from unittest import mock
  import pytest
  from mlflow.entities.model_registry import ModelVersion, ModelVersionTag, RegisteredModelTag
  from mlflow.environment_variables import MLFLOW_TRACKING_URI
  from mlflow.exceptions import MlflowException
  from mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE, RESOURCE_ALREADY_EXISTS, RESOURCE_DOES_NOT_EXIST, ErrorCode
  from mlflow.store.model_registry.dbmodels.models import SqlModelVersion, SqlModelVersionTag, SqlRegisteredModel, SqlRegisteredModelTag
  from mlflow.store.model_registry.sqlalchemy_store import SqlAlchemyStore
  from tests.helper_functions import random_str
label_desc: Use image node_id 38 for calling a global function with example usage: test_delete_model_version_deletes_alias(store) without return types