code: def test_artifact_versions(user, api, sample_data):
      versions = api.artifact_versions("dataset", "mnist")
      assert len(versions) == 2
      assert {version.name for version in versions} == {
          "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 2 for calling a global function with example usage: test_artifact_versions(user, api, sample_data) without return types