code: def test_send_status_request_stopped(
      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)
  
      with relay_server(inject=[inject_response]), backend_interface(
          run
      ) as interface:
          handle = interface.deliver_stop_status()
          result = handle.wait(timeout=5)
          stop_status = result.response.stop_status_response
          assert result is not None
          assert stop_status.run_should_stop
  
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 26 for calling a global function with example usage: test_send_status_request_stopped(user, relay_server, inject_graphql_response, mock_run, backend_interface) without return types