code: def test_interpolate_small_grid_batched():
      grid = tf.constant(
          [[[0.0, 1.0], [3.0, 4.0]], [[5.0, 6.0], [7.0, 8.0]]],
          shape=[2, 2, 2, 1],
      )
      query_points = tf.constant(
          [
              [[0.0, 0.0], [1.0, 0.0], [0.5, 0.5]],
              [[0.5, 0.0], [1.0, 0.0], [1.0, 1.0]],
          ]
      )
      expected_results = np.reshape(
          np.array([[0.0, 3.0, 2.0], [6.0, 7.0, 8.0]]), [2, 3, 1]
      )
  
      interp = interpolate_bilinear(grid, query_points)
  
      np.testing.assert_allclose(expected_results, interp)
  
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 3 for calling a global function with example usage: test_interpolate_small_grid_batched() without return types