keras/src/layers/preprocessing/random_flip.py/RandomFlip/call
class RandomFlip:    def call(self, inputs, training=True):
        inputs = self.backend.cast(inputs, self.compute_dtype)
        if training:
            return self._randomly_flip_inputs(inputs)
        else:
            return inputs