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 read(self, bs=512 * 1024):
      # if self.nr==10000: pdb.set_trace()
      self.nr += 1
      # print("read bs=%d"%bs)
      b = []
      nb = 0
      while len(b) < bs:
          # print('   loop')
          rb = self.sock.recv(bs - nb)
          if not rb:
              break
          b.append(rb)
          nb += len(rb)
      return b"".join(b)
  
imports: import os
  import pickle
  import sys
  import _thread
  import traceback
  import socket
  import logging
label_desc: Use image node_id 3 for calling the FileSock obj's underlying member method code with example usage: obj.read(bs) and returns: bytes