code: def test_artifact_delete(user, api, sample_data):
      art = api.artifact("mnist:v0", type="dataset")
      # The artifact has aliases, so fail unless delete_aliases is set.
      with pytest.raises(wandb.errors.CommError):
          art.delete()
      art.delete(delete_aliases=True)
  
imports: import os
  import platform
  import pytest
  import wandb
  from wandb.sdk.artifacts.exceptions import ArtifactFinalizedError
label_desc: Use image node_id 10 for calling a global function with example usage: test_artifact_delete(user, api, sample_data) without return types