code: def test_artifact_download(user, api, sample_data):
      art = api.artifact("mnist:v0", type="dataset")
      path = art.download()
      if platform.system() == "Windows":
          part = "mnist-v0"
      else:
          part = "mnist:v0"
      assert path == os.path.abspath(
          os.path.join(".", "artifacts", part)
      )
      assert os.listdir(path) == ["digits.h5"]
  
imports: import os
  import platform
  import pytest
  import wandb
  from wandb.sdk.artifacts.exceptions import ArtifactFinalizedError
label_desc: Use image node_id 9 for calling a global function with example usage: test_artifact_download(user, api, sample_data) without return types