code: def test_log_artifact(
      dbfs_fuse_artifact_repo, test_file, artifact_path, artifact_dir
  ):
      dbfs_fuse_artifact_repo.log_artifact(test_file, artifact_path)
      expected_file_path = os.path.join(
          artifact_dir,
          artifact_path if artifact_path else "",
          os.path.basename(test_file),
      )
      with open(expected_file_path, "rb") as handle:
          data = handle.read()
      assert data == TEST_FILE_1_CONTENT
  
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 7 for calling a global function with example usage: test_log_artifact(dbfs_fuse_artifact_repo, test_file, artifact_path, artifact_dir) without return types