code: def test_deterministic_transform():
      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(
          affine_transformations.apply_affine_transform(
              x,
              theta=45,
              row_axis=0,
              col_axis=1,
              channel_axis=2,
              fill_mode="constant",
          ),
          x_rotated,
      )
  
file_path: keras-preprocessing/tests/image/affine_transformations_test.py
imports: import numpy
  import pytest
  from keras_preprocessing.image import affine_transformations
label_desc: Use image node_id 2 for calling a global function with example usage: test_deterministic_transform() without return types