from typing import TextIO
import csv


def load_cases(fp: TextIO):
    """Load a case CSV file generated by ShapeVariationAnalyzer.

    Expects the CSV to have two columns: Filename, Group.
    """

    reader = csv.reader(fp)
    return [(path, group) for path, group in reader]