code: def test_parallel_requests(
      user,
      relay_server,
      inject_graphql_response,
      mock_run,
      backend_interface,
  ):
      body = json.dumps(
          {
              "data": {
                  "project": {
                      "run": {
                          "stopped": True,
                      }
                  }
              }
          }
      )
      inject_response = inject_graphql_response(
          body=body,
          query_match_fn=lambda query, _: "query RunStoppedStatus"
          in query,
          application_pattern="1",  # apply once and stop
      )
      run = mock_run(use_magic_mock=True)
  
      def send_sync_request(interface, i):
          if i % 3 == 0:
              stop_status = (
                  interface.deliver_stop_status()
                  .wait(timeout=5)
                  .response.stop_status_response
              )
              assert (
                  stop_status is not None
                  and stop_status.run_should_stop
              )
          elif i % 3 == 2:
              summary = (
                  interface.deliver_get_summary()
                  .wait(timeout=5)
                  .response.get_summary_response
              )
              assert summary is not None and hasattr(summary, "item")
  
      threads = []
  
      with relay_server(inject=[inject_response]), backend_interface(
          run
      ) as interface:
          for i in range(10):
              threads.append(
                  threading.Thread(
                      target=send_sync_request,
                      args=(
                          interface,
                          i,
                      ),
                      daemon=True,
                  )
              )
          for t in threads:
              t.start()
  
          for t in threads:
              t.join()
  
imports: import json
  import os
  import shutil
  import threading
  import time
  import unittest.mock
  import pytest
  import wandb
  from wandb.errors import CommError
  from wandb.proto import wandb_internal_pb2
  from wandb.sdk.interface.interface import InterfaceBase
  from wandb.sdk.lib import filesystem
label_desc: Use image node_id 27 for calling a global function with example usage: test_parallel_requests(user, relay_server, inject_graphql_response, mock_run, backend_interface) without return types