code: def __init__(self, service_name, key):
      self._service_name = service_name
      self._wire = Wire(key)
      self._server = self._make_server()
      self._port = self._server.socket.getsockname()[1]
      self._thread = threading.Thread(target=self._server.serve_forever)
      self._thread.daemon = True
      self._thread.start()
  
imports: import random
  import socket
  import struct
  import threading
  import cloudpickle
  import psutil
  from six.moves import queue, socketserver
  from bluefog.run.horovodrun.common.util import secret
label_desc: Use image node_id 1 to create a new BasicService object from inherited base classes: object with example: obj = BasicService(service_name, key)