code: def wrap_socket(self, sock, server_side=False,
                      do_handshake_on_connect=True,
                      suppress_ragged_eofs=True, dummy=None):
          
          return ssl.wrap_socket(sock, keyfile=self._keyfile,
                                 certfile=self._certfile,
                                 server_side=server_side,
                                 cert_reqs=self._verify_mode,
                                 ssl_version=self._protocol,
                                 ca_certs=self._cafile,
                                 do_handshake_on_connect=do_handshake_on_connect,
                                 suppress_ragged_eofs=suppress_ragged_eofs)
docs: Wrap an existing Python socket sock and return an ssl.SSLSocket
          object.