code: def test_stop_multi():
      requests = []
      with IPCServer(requests.append) as server, MultiRequestHandler(
          server
      ):
          send_request(server.port, 1)
          assert requests == [1]
          server.stop()
          with pytest.raises(socket.error):
              send_request(server.port, 2)
      assert requests == [1]
  
imports: import contextlib
  import pickle
  import random
  import socket
  import sys
  import threading
  import time
  import psutil
  import pytest
  import retrying
  from fiftyone.service.ipc import IPCServer, send_request
  from fiftyone.service.util import find_processes_by_args, get_listening_tcp_ports, normalize_wrapper_process, send_ipc_message
label_desc: Use image node_id 10 for calling a global function with example usage: test_stop_multi() without return types