human
I wrote the below code

    (etype, evalue, etb) = einfo
    if isinstance(etype, type):
        etype = etype.__name__
    pyver = ((('Python    ' + sys.version.split()[0]) + ':    ') + sys.executable)
    date = time.ctime(time.time())
    head = (('<body    bgcolor="#f0f0f8">' + pydoc.html.heading(('<big><big>%s</big></big>' % strong(pydoc.html.escape(str(etype)))), '#ffffff', '#6622aa', ((pyver + '<br>') + date))) + '\n<p>A    problem    occurred    in    a    Python    script.        Here    is    the    sequence    of\nfunction    calls    leading    up    to    the    error,    in    the    order    they    occurred.</p>')
    indent = (('<tt>' + small(('&nbsp;' * 5))) + '&nbsp;</tt>')
    frames = []
    records = inspect.getinnerframes(etb, context)
    for (frame, file, lnum, func, lines, index) in records:
        if file:
            file = os.path.abspath(file)
            link = ('<a    href="file://%s">%s</a>' % (file, pydoc.html.escape(file)))
        else:
            file = link = '?'
        (args, varargs, varkw, locals) = inspect.getargvalues(frame)
        call = ''
        if (func != '?'):
            call = (('in    ' + strong(func)) + inspect.formatargvalues(args, varargs, varkw, locals, formatvalue=(lambda value: ('=' + pydoc.html.repr(value)))))
        highlight = {}
        def reader(lnum=[lnum]):
            highlight[lnum[0]] = 1
            try:
                return linecache.getline(file, lnum[0])
            finally:
                lnum[0] += 1
        vars = scanvars(reader, frame, locals)
        rows = [('<tr><td    bgcolor="#d8bbff">%s%s    %s</td></tr>' % ('<big>&nbsp;</big>', link, call))]
        if (index is not None):
            i = (lnum - index)
            for line in lines:
                num = (small((('&nbsp;' * (5 - len(str(i)))) + str(i))) + '&nbsp;')
                if (i in highlight):
                    line = ('<tt>=&gt;%s%s</tt>' % (num, pydoc.html.preformat(line)))
                    rows.append(('<tr><td    bgcolor="#ffccee">%s</td></tr>' % line))
               ...

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

def html(einfo, context=5):