code: def _get_ssl_attribute(value, mapping, default_value, warning_message):
          
          for key in mapping:
              if not key.endswith(value.lower()):
                  continue
              return mapping[key]
          LOGGER.warning(warning_message, value)
          return default_value
docs: Get the TLS attribute based on the compatibility mapping.
  
              If no valid attribute can be found, fall-back on default and
              display a warning.
  
          :param str value:
          :param dict mapping: Dictionary based mapping
          :param default_value: Default fall-back value
          :param str warning_message: Warning message
          :return: