def divide_range(total_size: int, chunk_size: int = 1000):
    """
    Break down the range into chunks of specific size.
    Args:
        total_size: The total size of the range
        chunk_size: The size of each chunk
    return:
        list_ranges: A list of chunked range objects
    """
    num_thousand, remainder = divmod(total_size, chunk_size)
    list_ranges = []
    # Create a list of ranges
    for i in range(num_thousand):
        list_ranges.append(range(i*chunk_size, (i+1)*chunk_size))
    if remainder > 0:
        final_range = range(num_thousand*chunk_size, num_thousand*chunk_size+remainder)
        list_ranges.append(final_range)
    return list_ranges