class_docstr: Mock socket object used by the smtplib tests.
      
class_docstr_tok: ["Mock","socket","object","used","by","the","smtplib","tests","."]
code: def sendall(self, data, flags=None):
      self.last = data
      self.output.append(data)
      return len(data)
  
imports: import socket
label_desc: Use image node_id 15 for calling the MockSocket obj's underlying member method code with example usage: obj.sendall(data, flags) and returns: len