code: def test_artifact_manual_error(user, api, sample_data):
      run = api.run("uncategorized/first_run")
      art = wandb.Artifact("test", type="dataset")
      with pytest.raises(wandb.CommError):
          run.log_artifact(art)
      with pytest.raises(wandb.CommError):
          run.use_artifact(art)
      with pytest.raises(wandb.CommError):
          run.use_artifact("mnist:v0")
      with pytest.raises(wandb.CommError):
          run.log_artifact("mnist:v0")
  
imports: import os
  import platform
  import pytest
  import wandb
  from wandb.sdk.artifacts.exceptions import ArtifactFinalizedError
label_desc: Use image node_id 18 for calling a global function with example usage: test_artifact_manual_error(user, api, sample_data) without return types