code: def test_artifact_types(user, api, sample_data):
      atypes = api.artifact_types()
      assert {atype.name for atype in atypes} == {"dataset"}
  
imports: import os
  import platform
  import pytest
  import wandb
  from wandb.sdk.artifacts.exceptions import ArtifactFinalizedError
label_desc: Use image node_id 4 for calling a global function with example usage: test_artifact_types(user, api, sample_data) without return types