code: def _raise_unsupported_method(method, message=None):
      messages = [
          f"Method '{method}' is unsupported for models in the Workspace Model Registry. "
          f"Upgrade to Models in Unity Catalog to access the latest features. You can configure "
          f"the MLflow Python client to access models in Unity Catalog by running "
          f"mlflow.set_registry_uri('databricks-uc') before accessing models.",
      ]
      if message is not None:
          messages.append(message)
      raise MlflowException(" ".join(messages))
  
file_path: mlflow/mlflow/store/model_registry/databricks_workspace_model_registry_rest_store.py
imports: from mlflow.exceptions import MlflowException
  from mlflow.store.model_registry.rest_store import RestStore
label_desc: Use image node_id 1 for calling a global function with example usage: _raise_unsupported_method(method, message) without return types