code: def test_random_brightness(monkeypatch):
      monkeypatch.setattr(
          affine_transformations,
          "apply_brightness_shift",
          lambda x, y, z: (x, y),
      )
      assert (0, 3.0) == affine_transformations.random_brightness(
          0, (3, 3)
      )
  
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 8 for calling a global function with example usage: test_random_brightness(monkeypatch) without return types