code: def test_delete_model_version_tag(
      mock_registry_store_with_get_latest_version,
  ):
      # delete_model_version_tag using version
      MlflowClient().delete_model_version_tag("model_name", 1, "tag1")
      mock_registry_store_with_get_latest_version.delete_model_version_tag.assert_called_once_with(
          "model_name", 1, "tag1"
      )
  
      mock_registry_store_with_get_latest_version.delete_model_version_tag.reset_mock()
  
      # delete_model_version_tag using stage
      MlflowClient().delete_model_version_tag(
          "model_name", key="tag1", stage="Staging"
      )
      mock_registry_store_with_get_latest_version.delete_model_version_tag.assert_called_once_with(
          "model_name", 1, "tag1"
      )
  
      # delete_model_version_tag with version and stage set
      with pytest.raises(
          MlflowException,
          match="version and stage cannot be set together",
      ):
          MlflowClient().delete_model_version_tag(
              "model_name", version=1, key="tag1", stage="staging"
          )
  
      # delete_model_version_tag with version and stage not set
      with pytest.raises(
          MlflowException, match="version or stage must be set"
      ):
          MlflowClient().delete_model_version_tag(
              "model_name", key="tag1"
          )
  
imports: import pickle
  from unittest import mock
  import pytest
  from mlflow import MlflowClient
  from mlflow.entities import ExperimentTag, Run, RunInfo, RunStatus, RunTag, SourceType, ViewType
  from mlflow.entities.metric import Metric
  from mlflow.entities.model_registry import ModelVersion, ModelVersionTag
  from mlflow.entities.model_registry.model_version_status import ModelVersionStatus
  from mlflow.entities.param import Param
  from mlflow.exceptions import MlflowException
  from mlflow.store.model_registry.sqlalchemy_store import SqlAlchemyStore
  from mlflow.store.tracking import SEARCH_MAX_RESULTS_DEFAULT
  from mlflow.store.tracking.sqlalchemy_store import SqlAlchemyStore
  from mlflow.tracking import set_registry_uri
  from mlflow.tracking._model_registry import DEFAULT_AWAIT_MAX_SLEEP_SECONDS
  from mlflow.tracking._model_registry.utils import _get_store_registry
  from mlflow.tracking._tracking_service.utils import _tracking_store_registry
  from mlflow.utils.databricks_utils import _construct_databricks_run_url, get_databricks_runtime
  from mlflow.utils.mlflow_tags import MLFLOW_GIT_COMMIT, MLFLOW_PARENT_RUN_ID, MLFLOW_PROJECT_ENTRY_POINT, MLFLOW_SOURCE_NAME, MLFLOW_SOURCE_TYPE, MLFLOW_USER
label_desc: Use image node_id 45 for calling a global function with example usage: test_delete_model_version_tag(mock_registry_store_with_get_latest_version) without return types