code: def test_artifact_type(user, api, sample_data):
      atype = api.artifact_type("dataset")
      assert atype.name == "dataset"
      col = atype.collection("mnist")
      assert col.name == "mnist"
      cols = atype.collections()
      assert cols[0].name == "mnist"
  
imports: import os
  import platform
  import pytest
  import wandb
  from wandb.sdk.artifacts.exceptions import ArtifactFinalizedError
label_desc: Use image node_id 3 for calling a global function with example usage: test_artifact_type(user, api, sample_data) without return types