class_docstr: SSL implementation of TSocket
  
  This class creates outbound sockets wrapped using the
  python standard ssl module for encrypted connections.
code: def _do_open(self, family, socktype):
      plain_sock = socket.socket(family, socktype)
      try:
          return self._wrap_socket(plain_sock)
      except Exception as ex:
          plain_sock.close()
          msg = "failed to initialize SSL"
          logger.exception(msg)
          raise TTransportException(
              type=TTransportException.NOT_OPEN, message=msg, inner=ex
          )
  
imports: import logging
  import os
  import socket
  import ssl
  import sys
  import warnings
  from .sslcompat import _match_hostname, _match_has_ipaddress
  from thrift.transport import TSocket
  from thrift.transport.TTransport import TTransportException
label_desc: Use image node_id 5 for calling the TSSLSocket obj's underlying member method code with example usage: obj._do_open(family, socktype) and returns: self