code: def test_log_artifact_with_invalid_local_dir(_):
      repo = HdfsArtifactRepository("hdfs://host_name:8020/maybe/path")
  
      with pytest.raises(
          Exception,
          match="No such file or directory: '/not/existing/local/path'",
      ):
          repo.log_artifact(
              "/not/existing/local/path", "test_hdfs/some/path"
          )
  
imports: import os
  import sys
  from io import BufferedReader
  from tempfile import NamedTemporaryFile
  from unittest import mock
  from unittest.mock import ANY, call, mock_open
  import pytest
  from pyarrow import HadoopFileSystem
  from mlflow.entities import FileInfo
  from mlflow.store.artifact.hdfs_artifact_repo import HdfsArtifactRepository, _download_hdfs_file, _parse_extra_conf, _relative_path_remote, _resolve_base_path
  from mlflow.utils.file_utils import TempDir
label_desc: Use image node_id 4 for calling a global function with example usage: test_log_artifact_with_invalid_local_dir(_) without return types