human
I wrote the below code

    @wraps(func)
    def decorated_function(*args, **kwargs):
        signature = request.args.get('signature', '')
        timestamp = request.args.get('timestamp', '')
        nonce = request.args.get('nonce', '')
        wechat = init_wechat_sdk()
        if (not wechat.check_signature(signature=signature, timestamp=timestamp, nonce=nonce)):
            if (request.method == 'POST'):
                return 'signature    failed'
            else:
                return redirect(app.config['MAIN_URL'])
        return func(*args, **kwargs)
    return decorated_function

What's a good function header?

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

def check_signature(func):