code: def test_deterministic_transform():
      x = np.ones((32, 32, 3))
      generator = image_data_generator.ImageDataGenerator(
          rotation_range=90, fill_mode="constant"
      )
      x = np.random.random((32, 32, 3))
      assert np.allclose(
          generator.apply_transform(x, {"flip_vertical": True}),
          x[::-1, :, :],
      )
      assert np.allclose(
          generator.apply_transform(x, {"flip_horizontal": True}),
          x[:, ::-1, :],
      )
      x = np.ones((3, 3, 3))
      x_rotated = np.array(
          [
              [[0.0, 0.0, 0.0], [1.0, 1.0, 1.0], [0.0, 0.0, 0.0]],
              [[1.0, 1.0, 1.0], [1.0, 1.0, 1.0], [1.0, 1.0, 1.0]],
              [[0.0, 0.0, 0.0], [1.0, 1.0, 1.0], [0.0, 0.0, 0.0]],
          ]
      )
      assert np.allclose(
          generator.apply_transform(x, {"theta": 45}), x_rotated
      )
  
file_path: keras-preprocessing/tests/image/image_data_generator_test.py
imports: import numpy
  import pytest
  from PIL import Image
  from keras_preprocessing.image import image_data_generator, utils
label_desc: Use image node_id 10 for calling a global function with example usage: test_deterministic_transform() without return types