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

    func.argtypes = argtypes
    if str_result:
        func.restype = gdal_char_p
    else:
        func.restype = c_int
    def _check_str(result, func, cargs):
        res = check_string(result, func, cargs, offset=offset, str_result=str_result)
        if (res and decoding):
            res = res.decode(decoding)
        return res
    func.errcheck = _check_str
    return func

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

def string_output(func, argtypes, offset=(-1), str_result=False, decoding=None):