    def _transform_batch(self, batch, transforms):
        """ Transforms each individual image of the batch independently. """
        
        t_batch = np.array(
            [self._apply_transform(img, transforms[i]) for i, img in enumerate(batch)]
        )
        return t_batch
Transforms each individual image of the batch independently.
ISR/utils/datahandler.py