code: def test_create_model_version_run_link_in_notebook_with_default_profile(
      mock_registry_store, mock_databricks_tracking_store
  ):
      hostname = "https://workspace.databricks.com/"
      workspace_id = "10002"
      workspace_url = _construct_databricks_run_url(
          hostname,
          mock_databricks_tracking_store.experiment_id,
          mock_databricks_tracking_store.run_id,
          workspace_id,
      )
  
      with mock.patch(
          "mlflow.utils.databricks_utils.is_in_databricks_notebook",
          return_value=True,
      ), mock.patch(
          "mlflow.utils.databricks_utils.get_workspace_info_from_dbutils",
          return_value=(hostname, workspace_id),
      ):
          client = MlflowClient(
              tracking_uri="databricks", registry_uri="otherplace"
          )
          mock_registry_store.create_model_version.return_value = (
              ModelVersion(
                  "name",
                  1,
                  0,
                  1,
                  source="source",
                  run_id=mock_databricks_tracking_store.run_id,
                  run_link=workspace_url,
              )
          )
          model_version = client.create_model_version(
              "name", "source", "runid"
          )
          assert model_version.run_link == workspace_url
          # verify that the client generated the right URL
          mock_registry_store.create_model_version.assert_called_once_with(
              "name",
              "source",
              "runid",
              [],
              workspace_url,
              None,
              local_model_path=None,
          )
  
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 31 for calling a global function with example usage: test_create_model_version_run_link_in_notebook_with_default_profile(mock_registry_store, mock_databricks_tracking_store) without return types