human
I wrote the below code

    chunk = stream.read(max_header_size)
    header_end = chunk.find('\r\n\r\n')
    def _parse_header(line):
        (main_value_pair, params) = parse_header(line)
        try:
            (name, value) = main_value_pair.split(u':', 1)
        except:
            raise ValueError((u'Invalid    header:    %r' % line))
        return (name, (value, params))
    if (header_end == (-1)):
        stream.unget(chunk)
        return (RAW, {}, stream)
    header = chunk[:header_end]
    stream.unget(chunk[(header_end + 4):])
    TYPE = RAW
    outdict = {}
    for line in header.split('\r\n'):
        try:
            (name, (value, params)) = _parse_header(line)
        except:
            continue
        if (name == u'content-disposition'):
            TYPE = FIELD
            if params.get(u'filename'):
                TYPE = FILE
        outdict[name] = (value, params)
    if (TYPE == RAW):
        stream.unget(chunk)
    return (TYPE, outdict, stream)

What's a good function header?

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

def parse_boundary_stream(stream, max_header_size):