human
Here's a good function header given the following:
I wrote the below code

    def callback(lexer, match, context):
        text = match.group()
        if (context.indent < context.next_indent):
            context.indent_stack.append(context.indent)
            context.indent = context.next_indent
        if (not implicit):
            context.next_indent += len(text)
        (yield (match.start(), TokenClass, text))
        context.pos = match.end()
    return callback

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

def set_indent(TokenClass, implicit=False):