code: def test_log_artifacts_error(dbfs_artifact_repo, test_dir):
      with mock.patch(
          "mlflow.utils.rest_utils.http_request",
          return_value=Mock(status_code=409, text=""),
      ):
          with pytest.raises(
              MlflowException,
              match=r"API request to endpoint .+ failed",
          ):
              dbfs_artifact_repo.log_artifacts(test_dir)
  
imports: import json
  import os
  from unittest import mock
  from unittest.mock import Mock
  import pytest
  from mlflow.exceptions import MlflowException
  from mlflow.store.artifact.artifact_repository_registry import get_artifact_repository
  from mlflow.store.artifact.dbfs_artifact_repo import DbfsRestArtifactRepository, _get_host_creds_from_default_store
  from mlflow.store.tracking.file_store import FileStore
  from mlflow.store.tracking.rest_store import RestStore
  from mlflow.utils.rest_utils import MlflowHostCreds, http_request
label_desc: Use image node_id 11 for calling a global function with example usage: test_log_artifacts_error(dbfs_artifact_repo, test_dir) without return types