class_docstr: Handler to each worker.
code: def __init__(self, sock: socket.socket, s_addr: Tuple[str, int]):
      worker = ExSocket(sock)
      self.sock = worker
      self.host = get_some_ip(s_addr[0])
      magic = worker.recvint()
      assert (
          magic == MAGIC_NUM
      ), f"invalid magic number={magic} from {self.host}"
      worker.sendint(MAGIC_NUM)
      self.rank = worker.recvint()
      self.world_size = worker.recvint()
      self.jobid = worker.recvstr()
      self.cmd = worker.recvstr()
      self.wait_accept = 0
      self.port: Optional[int] = None
  
imports: import socket
  import struct
  import logging
  from threading import Thread
  import argparse
  import sys
  from typing import Dict, List, Tuple, Union, Optional, Set
label_desc: Use image node_id 1 to create a new WorkerEntry object  with example: obj = WorkerEntry(sock, s_addr)