def METHOD_NAME(self):
    image_shape = (16, 32, 32, 3)
    fixed_factor = (0.8, 0.8)
    fixed_seed = 2023
    image = tf.random.uniform(shape=image_shape) * 255.0
    layer = RandomHue(fixed_factor, (0, 255), fixed_seed)
    old_layer = OldRandomHue(fixed_factor, (0, 255), fixed_seed)
    output = layer(image)
    old_output = old_layer(image)
    self.assertAllClose(old_output, output, atol=1e-3, rtol=1e-5)