code: def test_upload_artifacts_to_databricks():
      import_root = "mlflow.tracking.artifact_utils"
      with mock.patch(
          import_root + "._download_artifact_from_uri"
      ) as download_mock, mock.patch(
          import_root + ".DbfsRestArtifactRepository"
      ) as repo_mock:
          new_source = _upload_artifacts_to_databricks(
              "dbfs:/original/sourcedir/",
              "runid12345",
              "databricks://tracking",
              "databricks://registry:ws",
          )
          download_mock.assert_called_once_with(
              "dbfs://tracking@databricks/original/sourcedir/", ANY
          )
          repo_mock.assert_called_once_with(
              "dbfs://registry:ws@databricks/databricks/mlflow/tmp-external-source/"
          )
          assert (
              new_source
              == "dbfs:/databricks/mlflow/tmp-external-source/runid12345/sourcedir"
          )
  
file_path: mlflow/tests/tracking/test_artifact_utils.py
imports: import os
  from unittest import mock
  from unittest.mock import ANY
  from uuid import UUID
  import mlflow
  from mlflow.tracking.artifact_utils import _download_artifact_from_uri, _upload_artifact_to_uri, _upload_artifacts_to_databricks
label_desc: Use image node_id 4 for calling a global function with example usage: test_upload_artifacts_to_databricks() without return types