def batch_data_sub(self, rnd_array):
    rnd_array = rnd_array.copy()
    index_data = []
    for i in range(7):
        index_data.extend(([i] * int(rnd_array[i])))
    return (rnd_array, index_data)
def batch_data_sub(self, rnd_array):
    rnd_array = rnd_array.copy()
    index_data = []
    for i in range(7):
        index_data.extend(([i] * int(rnd_array[i])))
    return (rnd_array, index_data)