code: def test_gql_410(
      wandb_init,
      test_settings,
      relay_server,
      inject_graphql_response,
  ):
      """Test that we do not retry upsert bucket mutations on 410s."""
      inject_response = inject_graphql_response(
          body="GOT ME A 410",
          status=410,
          query_match_fn=lambda query, variables: "mutation CreateRunFiles"
          in query,
          application_pattern="1112",  # apply thrice and stop
      )
      # we'll retry once and succeed
      with relay_server(inject=[inject_response]):
          run = wandb_init(
              settings=test_settings({"_graphql_retry_max": 4})
          )
          run.finish()
  
file_path: wandb/tests/pytest_tests/system_tests/test_core/test_wandb_init.py
imports: import json
  import os
  from unittest import mock
  import pytest
  from wandb.errors import CommError, UsageError
label_desc: Use image node_id 4 for calling a global function with example usage: test_gql_410(wandb_init, test_settings, relay_server, inject_graphql_response) without return types