code: def test_list_artifacts(mock_client, root_path):
      repo = AzureBlobArtifactRepository(
          posixpath.join(TEST_BLOB_CONTAINER_ROOT, root_path),
          mock_client,
      )
  
      # Create some files to return
      dir_prefix = BlobPrefix()
      dir_prefix.name = posixpath.join(TEST_ROOT_PATH, "dir")
  
      blob_props = BlobProperties()
      blob_props.size = 42
      blob_props.name = posixpath.join(TEST_ROOT_PATH, "file")
  
      mock_client.get_container_client().walk_blobs.return_value = (
          MockBlobList([dir_prefix, blob_props])
      )
  
      artifacts = repo.list_artifacts()
      mock_client.get_container_client().walk_blobs.assert_called_with(
          name_starts_with="some/path/"
      )
      assert artifacts[0].path == "dir"
      assert artifacts[0].is_dir is True
      assert artifacts[0].file_size is None
      assert artifacts[1].path == "file"
      assert artifacts[1].is_dir is False
      assert artifacts[1].file_size == 42
  
imports: import base64
  import os
  import posixpath
  from unittest import mock
  import pytest
  from azure.storage.blob import BlobPrefix, BlobProperties, BlobServiceClient
  from mlflow.entities.multipart_upload import MultipartUploadPart
  from mlflow.exceptions import MlflowException
  from mlflow.store.artifact.artifact_repository_registry import get_artifact_repository
  from mlflow.store.artifact.azure_blob_artifact_repo import AzureBlobArtifactRepository
label_desc: Use image node_id 8 for calling a global function with example usage: test_list_artifacts(mock_client, root_path) without return types