code: def test_handle_connection(self, patches, model_service_worker):
      patches.retrieve_msg.side_effect = [
          (b"L", ""),
          (b"I", ""),
          (b"U", ""),
      ]
      model_service_worker.load_model = Mock()
      service = Mock()
      service.context = None
      model_service_worker.load_model.return_value = (service, "", 200)
      cl_socket = Mock()
  
      with pytest.raises(
          ValueError, match=r"Received unknown command.*"
      ):
          model_service_worker.handle_connection(cl_socket)
  
      cl_socket.sendall.assert_called()
  
imports: import os
  import socket
  import sys
  from collections import namedtuple
  import mock
  import pytest
  from mock import Mock
  from ts.model_service_worker import TorchModelServiceWorker
  from ts.service import Service
label_desc: Use image node_id 2 for calling the TestHandleConnection obj's underlying member method code with example usage: obj.test_handle_connection(patches, model_service_worker) without return types