class_docstr: Mock socket object used by the smtplib tests.
      
class_docstr_tok: ["Mock","socket","object","used","by","the","smtplib","tests","."]
code: def settimeout(self, timeout):
      if timeout is None:
          self.timeout = _defaulttimeout
      else:
          self.timeout = timeout
  
imports: import socket
label_desc: Use image node_id 5 for calling the MockSocket obj's underlying member method code with example usage: obj.settimeout(timeout) without return types