code: def test_delete_registered_model(store, registered_model_names):
      model_name = registered_model_names[
          random_int(0, len(registered_model_names) - 1)
      ]
  
      # Error cases
      with pytest.raises(
          MlflowException,
          match=f"Registered Model with name={model_name}!!! not found",
      ):
          store.delete_registered_model(model_name + "!!!")
  
      store.delete_registered_model(model_name)
      assert model_name not in _extract_names(
          store.list_registered_models(max_results=10, page_token=None)
      )
      # Cannot delete a deleted model
      with pytest.raises(
          MlflowException,
          match=f"Registered Model with name={model_name} not found",
      ):
          store.delete_registered_model(model_name)
  
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 11 for calling a global function with example usage: test_delete_registered_model(store, registered_model_names) without return types