I know that keras fit_generator (.fit in tensorflow 2.2+) allows to do data augmentation. And from what I understand, both \'fit_generator\' and \'train_on_batch\' accepts the b