code: def test_random_zoom():
      x = np.random.random((2, 28, 28))
      assert affine_transformations.random_zoom(x, (5, 5)).shape == (
          2,
          28,
          28,
      )
      assert np.allclose(
          x, affine_transformations.random_zoom(x, (1, 1))
      )
  
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 5 for calling a global function with example usage: test_random_zoom() without return types