code: def test_apply_brightness_shift_error(monkeypatch):
      monkeypatch.setattr(affine_transformations, "ImageEnhance", None)
      with pytest.raises(ImportError):
          affine_transformations.apply_brightness_shift(0, [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 7 for calling a global function with example usage: test_apply_brightness_shift_error(monkeypatch) without return types