human
I wrote the below code

    def parse_out_leading_type(s):
        par_level = 0
        pos = 0
        while True:
            m = re_type_tok.search(s, pos)
            if (m is None):
                raise RuntimeError(('failed    parsing    leading    type:    %s' % (s,)))
                break
            pos = m.end()
            tok = m.group(0)
            if (tok == ','):
                if (par_level == 0):
                    break
            elif (tok in '{[('):
                par_level += 1
            elif (tok in ')]}'):
                par_level -= 1
        return s[pos:].lstrip()
    buf = []
    for line in ir.splitlines():
        if line.startswith('!numba.llvm.dbg.cu'):
            line = line.replace('!numba.llvm.dbg.cu', '!llvm.dbg.cu')
        if (line.lstrip().startswith('tail    call    void    asm    sideeffect    "//    dbg') and ('!numba.dbg' in line)):
            line = line.replace('!numba.dbg', '!dbg')
        if re_metadata_def.match(line):
            if (None is re_metadata_correct_usage.search(line)):
                line = line.replace('!{', 'metadata    !{')
                line = line.replace('!"', 'metadata    !"')
                assigpos = line.find('=')
                (lhs, rhs) = (line[:(assigpos + 1)], line[(assigpos + 1):])
                def fix_metadata_ref(m):
                    return ('metadata    ' + m.group(0))
                line = '    '.join((lhs, re_metadata_ref.sub(fix_metadata_ref, rhs)))
        if line.startswith('source_filename    ='):
            continue
        if (re_unsupported_keywords.search(line) is not None):
            line = re_unsupported_keywords.sub((lambda m: ''), line)
        if line.startswith('attributes    #'):
            m = re_attributes_def.match(line)
            attrs = m.group(1).split()
            attrs = '    '.join((a for a in attrs if (a in supported_attributes)))
            line = line.replace(m.group(1), attrs)
        if ('getelementptr    ' in line):
            m = re_getelementptr.search(line)
            if (m is None):
 ...

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

def llvm39_to_34_ir(ir):