human
I wrote the below code

    if quoting:
        target_width -= 2
    inlines = text.splitlines()
    outlines = []
    def line_length(l, word):
        return ((sum((len(w) for w in l)) + len(l)) + len(word))
    while inlines:
        thisline = inlines.pop(0)
        if (re.match(REFLOW_PROSE_START, thisline) and (not thisline.endswith('        ')) and (len(thisline) > (target_width - 10))):
            para = thisline.strip().split()
            while (inlines and (not inlines[0].endswith('        ')) and re.match(REFLOW_PROSE_START, inlines[0])):
                para += inlines.pop(0).strip().split()
            paralines = [[]]
            for word in para:
                if (line_length(paralines[(-1)], word) <= target_width):
                    paralines[(-1)].append(word)
                elif (0 == len(paralines[(-1)])):
                    paralines[(-1)].append(word)
                else:
                    paralines.append([word])
            outlines.extend(['    '.join(l) for l in paralines])
        else:
            outlines.append(thisline)
    return '\n'.join(outlines)

What's a good function header?

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

def reflow_text(text, quoting=False, target_width=65):