code: def test_apply_affine_transform_error(monkeypatch):
      monkeypatch.setattr(affine_transformations, "scipy", None)
      with pytest.raises(ImportError):
          affine_transformations.apply_affine_transform(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 13 for calling a global function with example usage: test_apply_affine_transform_error(monkeypatch) without return types