human
I wrote the below code

    def repl_shift(match):
        shift_by = int(match.group(2))
        value = int(match.group(1))
        int_value = ctypes.c_int((value << shift_by)).value
        return ('=    %s' % str(int_value))
    return reg.sub(repl_shift, string)

What's a good function header?

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

def _fixup_cdef_enums(string, reg=re.compile('=\\s*(\\d+)\\s*<<\\s*(\\d+)')):