code: def test_delete_model_version(store):
      name = "test_for_delete_MV"
      initial_tags = [
          ModelVersionTag("key", "value"),
          ModelVersionTag("anotherKey", "some other value"),
      ]
      store.create_registered_model(name)
      mv = _create_model_version(store, name, tags=initial_tags)
      mvd = store.get_model_version(name=mv.name, version=mv.version)
      assert mvd.name == name
  
      store.delete_model_version(name=mv.name, version=mv.version)
  
      # cannot get a deleted model version
      with pytest.raises(
          MlflowException,
          match=rf"Model Version \(name={mv.name}, version={mv.version}\) not found",
      ) as exception_context:
          store.get_model_version(name=mv.name, version=mv.version)
      assert exception_context.value.error_code == ErrorCode.Name(
          RESOURCE_DOES_NOT_EXIST
      )
  
      # cannot update a delete
      with pytest.raises(
          MlflowException,
          match=rf"Model Version \(name={mv.name}, version={mv.version}\) not found",
      ) as exception_context:
          store.update_model_version(
              mv.name, mv.version, description="deleted!"
          )
      assert exception_context.value.error_code == ErrorCode.Name(
          RESOURCE_DOES_NOT_EXIST
      )
  
      # cannot delete it again
      with pytest.raises(
          MlflowException,
          match=rf"Model Version \(name={mv.name}, version={mv.version}\) not found",
      ) as exception_context:
          store.delete_model_version(name=mv.name, version=mv.version)
      assert exception_context.value.error_code == ErrorCode.Name(
          RESOURCE_DOES_NOT_EXIST
      )
  
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 24 for calling a global function with example usage: test_delete_model_version(store) without return types