def partitioned_cases(cases, n_cases=25):
    """Partitions cases

    :param typing.Sequence cases: list of AVL cases to partition
    :param int n_cases: (optional) number of cases per partition
    """
    for idx in range(0, len(cases), n_cases):
        yield cases[idx:idx + n_cases]
