'Reshape iterator for data_shape or label_shape.
Parameters
data_shape : tuple or None
reshape the data_shape to the new shape if not None
label_shape : tuple or None
reshape label shape to new shape if not None'

def reshape(self, data_shape=None, label_shape=None):

    if (data_shape is not None):
        self.check_data_shape(data_shape)
        self.provide_data = [(self.provide_data[0][0], ((self.batch_size,) + data_shape))]
    if (label_shape is not None):
        self.check_label_shape(label_shape)
        self.provide_label = [(self.provide_label[0][0], ((self.batch_size,) + label_shape))]
