human
I wrote the below code

    func.argtypes = argtypes
    if (not offset):
        func.restype = c_void_p
        func.errcheck = check_geom
    else:
        func.restype = c_int
        def geomerrcheck(result, func, cargs):
            return check_geom_offset(result, func, cargs, offset)
        func.errcheck = geomerrcheck
    return func

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

def geom_output(func, argtypes, offset=None):