code: def test_fetching_artifact_files(user, wandb_init):
      project = "test"
  
      with wandb_init(entity=user, project=project) as run:
          artifact = wandb.Artifact("test-artifact", "test-type")
          with open("boom.txt", "w") as f:
              f.write("testing")
          artifact.add_file("boom.txt", "test-name")
          run.log_artifact(artifact, aliases=["sequence"])
  
      # run = wandb_init(entity=user, project=project)
      # artifact = wandb.Artifact("test-artifact", "test-type")
      # with open("boom.txt", "w") as f:
      #     f.write("testing")
      # artifact.add_file("boom.txt", "test-name")
      # run.log_artifact(artifact, aliases=["sequence"])
      # artifact.wait()
      # run.finish()
  
      # fetch artifact and its file successfully
      artifact = Api().artifact(
          name=f"{user}/{project}/test-artifact:v0", type="test-type"
      )
      boom = artifact.files()[0]
      assert boom.name == "test-name"
      artifact_path = artifact.download()
      file_path = os.path.join(artifact_path, boom.name)
      assert os.path.exists(file_path)
      assert open(file_path).read() == "testing"
  
file_path: wandb/tests/pytest_tests/system_tests/test_artifacts/test_public_api.py
imports: import os
  import pytest
  import wandb
  from wandb import Api
label_desc: Use image node_id 1 for calling a global function with example usage: test_fetching_artifact_files(user, wandb_init) without return types