def make_assert(error):
    """
    Create an assert function that uses :func:`exception_from_error_queue` to
    raise an exception wrapped by *error*.
    """
    def openssl_assert(ok):
        """
        If *ok* is not True, retrieve the error from OpenSSL and raise it.
        """
        if ok is not True:
            exception_from_error_queue(error)

    return openssl_assert

    Create an assert function that uses :func:`exception_from_error_queue` to
    raise an exception wrapped by *error*.
    
stackoverflow/venv/lib/python3.6/site-packages/OpenSSL/_util.py