human
I wrote the below code

    @functools.wraps(f)
    def wrapper(*args, **kwds):
        if (AES is None):
            raise CryptoUnavailableError()
        return f(*args, **kwds)
    return wrapper

What's a good function header?
assistant
#Here's a good function header.

def assert_crypto_availability(f):