def METHOD_NAME(index, line):
    nonlocal cur_lineno, prev_lineno
    if lineno:
        if cur_lineno != prev_lineno:
            line = "L.% 3s % 3s: %s" % (cur_lineno, index, line)
            prev_lineno = cur_lineno
        else:
            line = "      % 3s: %s" % (index, line)
    else:
        line = line
    return line