code: def test_local_warning(
      relay_server,
      inject_graphql_response,
      wandb_init,
      capsys,
      local_info,
      warn,
  ):
      body = {
          "viewer": {},
          "serverInfo": {"cliVersionInfo": {}},
      }
      if local_info != "":
          body["serverInfo"]["latestLocalVersionInfo"] = local_info
  
      inject_response = inject_graphql_response(
          body=json.dumps({"data": body}),
          status=200,
          query_match_fn=lambda query, _: "query Viewer" in query,
          application_pattern="1",
      )
      # we do not retry 409s on queries, so this should fail
      with relay_server(inject=[inject_response]):
          run = wandb_init()
          run.finish()
      captured = capsys.readouterr().err
  
      msg = "version of W&B Server to get the latest features"
      if warn:
          assert msg in captured
      else:
          assert msg not in captured
  
imports: import json
  import os
  import pickle
  import sys
  import numpy
  import pytest
  import wandb
  from wandb import wandb_sdk
  from wandb.errors import UsageError
label_desc: Use image node_id 14 for calling a global function with example usage: test_local_warning(relay_server, inject_graphql_response, wandb_init, capsys, local_info, warn) without return types