code: def upload_to_dbfs_mock(dbfs_root_mock):
      def upload_mock_fn(_, src_path, dbfs_uri):
          mock_dbfs_dst = os.path.join(
              dbfs_root_mock, dbfs_uri.split("/dbfs/")[1]
          )
          os.makedirs(os.path.dirname(mock_dbfs_dst))
          shutil.copy(src_path, mock_dbfs_dst)
  
      with mock.patch.object(
          mlflow.projects.databricks.DatabricksJobRunner,
          "_upload_to_dbfs",
          new=upload_mock_fn,
      ) as upload_mock:
          yield upload_mock
  
imports: import filecmp
  import json
  import os
  import shutil
  from unittest import mock
  import databricks_cli
  import pytest
  from databricks_cli.configure.provider import DatabricksConfig
  import mlflow
  from mlflow import MlflowClient, cli
  from mlflow.entities import RunStatus
  from mlflow.environment_variables import MLFLOW_TRACKING_URI
  from mlflow.exceptions import MlflowException
  from mlflow.projects import ExecutionException, databricks
  from mlflow.projects.databricks import DatabricksJobRunner, _get_cluster_mlflow_run_cmd
  from mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE, ErrorCode
  from mlflow.store.tracking.file_store import FileStore
  from mlflow.tracking.request_header.default_request_header_provider import DefaultRequestHeaderProvider
  from mlflow.utils import file_utils
  from mlflow.utils.mlflow_tags import MLFLOW_DATABRICKS_RUN_URL, MLFLOW_DATABRICKS_SHELL_JOB_RUN_ID, MLFLOW_DATABRICKS_WEBAPP_URL
  from mlflow.utils.uri import construct_db_uri_from_profile
  from tests import helper_functions
  from tests.integration.utils import invoke_cli_runner
  from tests.projects.utils import TEST_PROJECT_DIR, validate_exit_status
label_desc: Use image node_id 7 for calling a global function with example usage: upload_to_dbfs_mock(dbfs_root_mock) without return types