code: def _parse_ssl_options(self, ssl_kwargs):
          
          ssl_options = {}
          for key in ssl_kwargs:
              if key not in compatibility.SSL_OPTIONS:
                  LOGGER.warning('invalid option: %s', key)
                  continue
              if 'ssl_version' in key:
                  value = self._get_ssl_version(ssl_kwargs[key][0])
              elif 'cert_reqs' in key:
                  value = self._get_ssl_validation(ssl_kwargs[key][0])
              else:
                  value = ssl_kwargs[key][0]
              ssl_options[key] = value
          return ssl_options
docs: Parse TLS Options.
  
          :param ssl_kwargs:
          :rtype: dict