human
I wrote the below code

    def callback(lexer, match, context):
        text = match.group()
        if (len(text) <= context.indent):
            context.stack.pop()
            context.stack.pop()
            return
        if 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 parse_plain_scalar_indent(TokenClass):