code: def test_reference_download(user):
      open("file1.txt", "w").write("hello")
      with wandb.init() as run:
          artifact = wandb.Artifact(
              "test_reference_download", "dataset"
          )
          artifact.add_file("file1.txt")
          artifact.add_reference(
              "https://wandb-artifacts-refs-public-test.s3-us-west-2.amazonaws.com/StarWars3.wav"
          )
          run.log_artifact(artifact)
  
      with wandb.init() as run:
          artifact = run.use_artifact("test_reference_download:latest")
          entry = artifact.get_entry("StarWars3.wav")
          entry.download()
          assert (
              entry.ref_target()
              == "https://wandb-artifacts-refs-public-test.s3-us-west-2.amazonaws.com/StarWars3.wav"
          )
  
          entry = artifact.get_entry("file1.txt")
          entry.download()
          with pytest.raises(ValueError):
              assert entry.ref_target()
  
file_path: wandb/tests/pytest_tests/system_tests/test_artifacts/test_misc2.py
imports: from typing import Callable
  import numpy
  import pytest
  import wandb
  from wandb.sdk.artifacts.exceptions import ArtifactNotLoggedError
  from wandb.testing.relay import TokenizedCircularPattern
label_desc: Use image node_id 4 for calling a global function with example usage: test_reference_download(user) without return types