class_docstr: wraps a socket so that it is usable by pickle/cPickle 
class_docstr_tok: ["wraps","a","socket","so","that","it","is","usable","by","pickle\/cPickle"]
code: def write(self, buf):
      # print("sending %d bytes"%len(buf))
      # self.sock.sendall(buf)
      # print("...done")
      bs = 512 * 1024
      ns = 0
      while ns < len(buf):
          sent = self.sock.send(buf[ns : ns + bs])
          ns += sent
  
imports: import os
  import pickle
  import sys
  import _thread
  import traceback
  import socket
  import logging
label_desc: Use image node_id 2 for calling the FileSock obj's underlying member method code with example usage: obj.write(buf) without return types