code: def test_artifact_run_used(user, api, sample_data):
      run = api.run("uncategorized/second_run")
      arts = run.used_artifacts()
      assert len(arts) == 2
      assert {art.name for art in arts} == {"mnist:v0", "mnist:v1"}
  
imports: import os
  import platform
  import pytest
  import wandb
  from wandb.sdk.artifacts.exceptions import ArtifactFinalizedError
label_desc: Use image node_id 12 for calling a global function with example usage: test_artifact_run_used(user, api, sample_data) without return types