class_docstr: Mock socket object used by the smtplib tests.
      
class_docstr_tok: ["Mock","socket","object","used","by","the","smtplib","tests","."]
code: def __init__(self, family=None):
      global _reply_data
      self.family = family
      self.output = []
      self.lines = []
      if _reply_data:
          self.lines.append(_reply_data)
          _reply_data = None
      self.conn = None
      self.timeout = None
  
imports: import socket
label_desc: Use image node_id 1 to create a new MockSocket object  with example: obj = MockSocket(family)