human
Here's a good function header given the following:
I wrote the below code

    @wraps(func)
    def _decorator(*args, **kwargs):
        val = func(*args, **kwargs)
        if (not val):
            raise ValueError('Return    value    is    None')
        elif (not isinstance(val, str)):
            raise ValueError('Return    value    is    not    string')
        hash_object = hashlib.sha256(val.encode('utf-8'))
        return str(hash_object.hexdigest())
    return _decorator

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

def hash256_result(func):