def make_batch_sizes(num_records, max_batch_size):
    """Function that generates a sequence of batch sizes from
    total number of records and batch size.

    Parameters
    ----------
    num_records : int
        Overall number of records
    max_batch_size : int
        Number of records in a batch

    Returns
    -------
    tuple of integers
        Tuple with batch sizes (in terms of number of records)
    """

    if num_records <= max_batch_size:
        return tuple([num_records])
    nb = num_records / max_batch_size
    mbs = max_batch_size
    batches = [mbs for _ in range(int(nb))]
    remainder = int((nb % int(nb)) * mbs)
    if remainder > 0:
        batches += [remainder]
    return tuple(batches)