def get_batch_limits(length: int, batch: int):
    """
    Get the index limits for a given batch size, and the length of the original
    list.

    Parameters
    ----------
    length : int
        The length of the original list.
    batch : int
        Size of the batch.
    """
    batch_limits = []
    lb = 1
    while lb <= length:
        if lb + batch < length:
            limits = (lb, lb + batch - 1)
        else:
            limits = (lb, length)
        batch_limits.append(limits)
        lb += batch
    return batch_limits