code: def force_dbfs_fuse_repo(artifact_dir):
      in_databricks_mock_path = (
          "mlflow.utils.databricks_utils.is_dbfs_fuse_available"
      )
      local_artifact_repo_package = (
          "mlflow.store.artifact.local_artifact_repo"
      )
      artifact_dir_mock_path = (
          local_artifact_repo_package
          + ".LocalArtifactRepository.artifact_dir"
      )
      with mock.patch(
          in_databricks_mock_path, return_value=True
      ), mock.patch(
          artifact_dir_mock_path,
          new_callable=PropertyMock,
          return_value=artifact_dir,
      ):
          yield
  
file_path: mlflow/tests/store/artifact/test_dbfs_fuse_artifact_repo.py
imports: import os
  from unittest import mock
  from unittest.mock import PropertyMock
  import pytest
  from mlflow.store.artifact.artifact_repository_registry import get_artifact_repository
label_desc: Use image node_id 2 for calling a global function with example usage: force_dbfs_fuse_repo(artifact_dir) without return types