code: def logged_artifact(wandb_init, user, example_files) -> Artifact:
      with wandb_init(entity=user, project="project") as run:
          artifact = wandb.Artifact("test-artifact", "dataset")
          artifact.add_dir(example_files)
          run.log_artifact(artifact)
      artifact.wait()
      return wandb.Api().artifact(f"{user}/project/test-artifact:v0")
  
imports: import pytest
  import wandb
  from wandb.sdk.artifacts.artifact import Artifact
label_desc: Use image node_id 1 for calling a global function with example usage: logged_artifact(wandb_init, user, example_files) and returns: wandb