human
I wrote the below code

    indent = '        '
    result = []
    def _dump(s):
        if includeLineNos:
            startline = elem.get('line')
            lineend = elem.get('lineend')
            line_str = ''
            if (startline or lineend):
                line_str = ('    (%r-%r)' % (startline, lineend))
            result.append(((((indent * _lvl) + s) + line_str) + '\n'))
        else:
            result.append((((indent * _lvl) + s) + '\n'))
    if (elem.tag == 'codeintel'):
        _lvl -= 1
    elif brief:
        name = elem.get('name')
        if name:
            _dump(name)
    elif (elem.tag == 'file'):
        lang = elem.get('lang')
        _dump(('file    %(path)s    [%(lang)s]' % elem.attrib))
    elif (elem.tag == 'variable'):
        if (elem.get('ilk') == 'argument'):
            s = ('arg    ' + elem.get('name'))
        else:
            s = ('var    ' + elem.get('name'))
        if elem.get('citdl'):
            s += ('    [%s]' % elem.get('citdl'))
        _dump(s)
    elif ((elem.tag == 'scope') and (elem.get('ilk') == 'function') and elem.get('signature')):
        _dump(('function    %s' % elem.get('signature').split('\n')[0]))
    elif ((elem.tag == 'scope') and (elem.get('ilk') == 'blob')):
        lang = elem.get('lang')
        _dump(('blob    %(name)s    [%(lang)s]' % elem.attrib))
    elif ((elem.tag == 'scope') and (elem.get('ilk') == 'class') and elem.get('classrefs')):
        _dump(('%s    %s(%s)' % (elem.get('ilk'), elem.get('name'), ',    '.join(elem.get('classrefs').split()))))
    elif (elem.tag == 'scope'):
        _dump(('%s    %s' % (elem.get('ilk'), elem.get('name'))))
    elif (elem.tag == 'import'):
        module = elem.get('module')
        symbol = elem.get('symbol')
        alias = elem.get('alias')
        value = ("import    '%s" % (module,))
        if symbol:
            value += ('.%s' % (symbol,))
        value += "'"
        if alias:
            (value + ('    as    %r' % (alias,)))
        _dump(value)
    else:
        raise ValueError(('unknown    tag:    %r...

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

def outline_ci_elem(elem, _lvl=0, brief=False, doSort=False, includeLineNos=False):