def METHOD_NAME(path, num_lines=64):
    fd, new_path = tempfile.mkstemp()
    os.close(fd)
    with open(path) as src, open(new_path, "w") as dst:
        for i, line in enumerate(src):
            dst.write(line)
            if i + 1 == num_lines:
                break
    return new_path