code: def test_size_exception():
      """Make sure it throws an exception for images that are too small."""
      shape = [1, 2, 1, 1]
      with pytest.raises(
          tf.errors.InvalidArgumentError,
          match="Grid width must be at least 2.",
      ):
          _check_interpolation_correctness(shape, "float32", "float32")
  
file_path: addons/tensorflow_addons/image/tests/dense_image_warp_test.py
imports: import pytest
  import math
  import numpy
  import tensorflow
  from tensorflow_addons.image import dense_image_warp
  from tensorflow_addons.image import interpolate_bilinear
label_desc: Use image node_id 12 for calling a global function with example usage: test_size_exception() without return types