code: def sample_data():
      with wandb.init(id="first_run", settings={"silent": True}):
          artifact = wandb.Artifact("mnist", type="dataset")
          with artifact.new_file("digits.h5") as f:
              f.write("v0")
          wandb.run.log_artifact(artifact, aliases=["my_alias"])
  
          artifact = wandb.Artifact("mnist", type="dataset")
          table = wandb.Table(
              columns=["c1", "c2"],
              data=[
                  ("r1c1", "r1c2"),
                  ("r2c1", "r2c2"),
              ],
          )
          artifact.add(table, name="t")
          wandb.run.log_artifact(artifact)
  
      with wandb.init(id="second_run", settings={"silent": True}):
          wandb.run.use_artifact("mnist:v0")
          wandb.run.use_artifact("mnist:v1")
  
imports: import os
  import platform
  import pytest
  import wandb
  from wandb.sdk.artifacts.exceptions import ArtifactFinalizedError
label_desc: Use image node_id 1 for calling a global function with example usage: sample_data() without return types