code: def test_deliver_artifact(user, relay_server, publish_util, mock_run):
      with relay_server() as relay:
          run = mock_run()
          artifact = wandb.Artifact("comms_test_PENDING", "dataset")
          artifact_publish = dict(
              run=run, artifact=artifact, aliases=["latest"]
          )
          publish_util(run, artifacts=[artifact_publish])
          assert len(relay.context[run.id]["create_artifact"]) == 1
  
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 5 for calling a global function with example usage: test_deliver_artifact(user, relay_server, publish_util, mock_run) without return types