code: def test_artifact_log_with_network_error(
      user, relay_server, inject_graphql_response
  ):
      create_artifact_response = inject_graphql_response(
          # request
          query_match_fn=lambda query, variables: query.startswith(
              "mutation CreateArtifact("
          ),
          application_pattern=(
              TokenizedCircularPattern.APPLY_TOKEN
              + TokenizedCircularPattern.STOP_TOKEN
          ),
          # response
          status=500,
          body="transient error",
      )
      with relay_server(inject=[create_artifact_response]):
          with wandb.init() as run:
              artifact = wandb.Artifact("table-example", "dataset")
              run.log_artifact(artifact)
  
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 1 for calling a global function with example usage: test_artifact_log_with_network_error(user, relay_server, inject_graphql_response) without return types