def METHOD_NAME(code, start, maxlines=15):
    lines = code.split("\n")
    nlines = len(lines)
    lines = [line_fmt(i + start) + l for i, l in enumerate(lines)]
    nlup = int(maxlines / 2)
    nllo = maxlines - nlup - 1
    if nlines > maxlines:
        lines = lines[:nlup] + [" " * 5 + "// ..."] + lines[-nllo:]
    return "\n".join(lines)