code: def test_register_model_with_unexpected_mlflow_exception_in_create_registered_model():
      with mock.patch.object(
          MlflowClient,
          "create_registered_model",
          side_effect=MlflowException("Dunno", INTERNAL_ERROR),
      ) as mock_create_registered_model:
          with pytest.raises(MlflowException, match="Dunno"):
              register_model("s3:/some/path/to/model", "Model 1")
          mock_create_registered_model.assert_called_once_with(
              "Model 1"
          )
  
file_path: mlflow/tests/tracking/_model_registry/test_model_registry_fluent.py
imports: from unittest import mock
  import pytest
  from mlflow import MlflowClient, register_model
  from mlflow.entities.model_registry import ModelVersion, RegisteredModel
  from mlflow.exceptions import MlflowException
  from mlflow.protos.databricks_pb2 import ALREADY_EXISTS, INTERNAL_ERROR, RESOURCE_ALREADY_EXISTS
  from mlflow.tracking._model_registry import DEFAULT_AWAIT_MAX_SLEEP_SECONDS
label_desc: Use image node_id 4 for calling a global function with example usage: test_register_model_with_unexpected_mlflow_exception_in_create_registered_model() without return types