code: def test_delete_registered_model(store):
      name = "model_for_delete_RM"
      _rm_maker(store, name)
      _mv_maker(store, name)
      rm1 = store.get_registered_model(name=name)
      mv1 = store.get_model_version(name, 1)
      assert rm1.name == name
      assert mv1.name == name
  
      # delete model
      store.delete_registered_model(name=name)
  
      # cannot get model
      with pytest.raises(
          MlflowException,
          match=rf"Registered Model with name={name} not found",
      ) as exception_context:
          store.get_registered_model(name=name)
      assert exception_context.value.error_code == ErrorCode.Name(
          RESOURCE_DOES_NOT_EXIST
      )
  
      # cannot update a delete model
      with pytest.raises(
          MlflowException,
          match=rf"Registered Model with name={name} not found",
      ) as exception_context:
          store.update_registered_model(
              name=name, description="deleted"
          )
      assert exception_context.value.error_code == ErrorCode.Name(
          RESOURCE_DOES_NOT_EXIST
      )
  
      # cannot delete it again
      with pytest.raises(
          MlflowException,
          match=rf"Registered Model with name={name} not found",
      ) as exception_context:
          store.delete_registered_model(name=name)
      assert exception_context.value.error_code == ErrorCode.Name(
          RESOURCE_DOES_NOT_EXIST
      )
  
      # model versions are cascade deleted with the registered model
      with pytest.raises(
          MlflowException,
          match=rf"Model Version \(name={name}, version=1\) not found",
      ) as exception_context:
          store.get_model_version(name, 1)
      assert exception_context.value.error_code == ErrorCode.Name(
          RESOURCE_DOES_NOT_EXIST
      )
  
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 9 for calling a global function with example usage: test_delete_registered_model(store) without return types