code: def test_list_artifacts_malicious_path(http_artifact_repo, path):
      with mock.patch(
          "mlflow.store.artifact.http_artifact_repo.http_request",
          return_value=MockResponse(
              {
                  "files": [
                      {"path": path, "is_dir": False, "file_size": 1},
                  ]
              },
              200,
          ),
      ):
          with pytest.raises(MlflowException, match="Invalid path"):
              http_artifact_repo.list_artifacts()
  
imports: import os
  import posixpath
  from unittest import mock
  import pytest
  from requests import HTTPError
  from mlflow.entities.multipart_upload import CreateMultipartUploadResponse, MultipartUploadCredential, MultipartUploadPart
  from mlflow.environment_variables import MLFLOW_MULTIPART_UPLOAD_MINIMUM_FILE_SIZE, MLFLOW_TRACKING_CLIENT_CERT_PATH, MLFLOW_TRACKING_INSECURE_TLS, MLFLOW_TRACKING_PASSWORD, MLFLOW_TRACKING_SERVER_CERT_PATH, MLFLOW_TRACKING_TOKEN, MLFLOW_TRACKING_USERNAME
  from mlflow.exceptions import MlflowException
  from mlflow.store.artifact.artifact_repository_registry import get_artifact_repository
  from mlflow.store.artifact.http_artifact_repo import HttpArtifactRepository
  from mlflow.tracking._tracking_service.utils import _get_default_host_creds
  from mlflow.utils.rest_utils import MlflowHostCreds
label_desc: Use image node_id 6 for calling a global function with example usage: test_list_artifacts_malicious_path(http_artifact_repo, path) without return types