def compare_lines(filename: str, basename: str, n: int) -> bool:
    """Compare a source file's lines with those of N separate files' lines
    in ordered sequence. This is helpful for `split_file`, where we split a file into
    chunks.

    Args:
        filename (str)
        basename (str)
        n (int)

    Returns:
        bool
    """
    with open(filename, 'r') as src:
        for i in range(n):
            with open(basename + '{:02}'.format(i), 'r') as dest:
                for line in dest:
                    if line != src.readline():
                        return False
    return True