class_docstr: SSL implementation of TSocket
  
  This class creates outbound sockets wrapped using the
  python standard ssl module for encrypted connections.
code: def open(self):
      super(TSSLSocket, self).open()
      if self._should_verify:
          self.peercert = self.handle.getpeercert()
          try:
              self._validate_callback(
                  self.peercert, self._server_hostname
              )
              self.is_valid = True
          except TTransportException:
              raise
          except Exception as ex:
              raise TTransportException(message=str(ex), 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 6 for calling the TSSLSocket obj's underlying member method code with example usage: obj.open() without return types