code: def test_log_artifact_throws_exception_for_invalid_artifact_paths(
      local_artifact_repo,
  ):
      with TempDir() as local_dir:
          for bad_artifact_path in [
              "/",
              "//",
              "/tmp",
              "/bad_path",
              ".",
              "../terrible_path",
          ]:
              with pytest.raises(
                  MlflowException, match="Invalid artifact path"
              ):
                  local_artifact_repo.log_artifact(
                      local_dir.path(), bad_artifact_path
                  )
  
file_path: mlflow/tests/store/artifact/test_local_artifact_repo.py
imports: import os
  import posixpath
  import pytest
  from mlflow.exceptions import MlflowException
  from mlflow.store.artifact.local_artifact_repo import LocalArtifactRepository
  from mlflow.utils.file_utils import TempDir
label_desc: Use image node_id 9 for calling a global function with example usage: test_log_artifact_throws_exception_for_invalid_artifact_paths(local_artifact_repo) without return types