code: def _assert_ssl_exc_contains(exc, *msgs):
      
      if len(msgs) < 1:
          raise TypeError(
              '_assert_ssl_exc_contains() requires '
              'at least one message to be passed.',
          )
      err_msg_lower = str(exc).lower()
      return any(m.lower() in err_msg_lower for m in msgs)
docs: Check whether SSL exception contains either of messages provided.