code: def test_random_brightness_scale():
      img = np.ones((1, 1, 3)) * 128
      zeros = np.zeros((1, 1, 3))
      must_be_128 = affine_transformations.random_brightness(
          img, [1, 1], False
      )
      assert np.array_equal(img, must_be_128)
      must_be_0 = affine_transformations.random_brightness(
          img, [1, 1], True
      )
      assert np.array_equal(zeros, must_be_0)
  
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 10 for calling a global function with example usage: test_random_brightness_scale() without return types