code: def test_transform_reflect_fill_mode(dtype):
      image = tf.constant(
          [
              [0, 1, 2, 3],
              [4, 5, 6, 7],
              [8, 9, 10, 11],
              [12, 13, 14, 15],
          ],
          dtype=dtype,
      )
      expected = np.asarray(
          [[0, 0, 1, 2], [4, 4, 5, 6], [8, 8, 9, 10], [12, 12, 13, 14]],
          dtype=dtype.as_numpy_dtype,
      )
      # Translate right by 1 (the transformation matrix is always inverted,
      # hence the -1).
      translation = tf.constant(
          [1, 0, -1, 0, 1, 0, 0, 0], dtype=tf.float32
      )
      image_transformed = transform_ops.transform(
          image, translation, fill_mode="reflect"
      )
      np.testing.assert_equal(image_transformed.numpy(), expected)
  
imports: import pytest
  import numpy
  import tensorflow
  from skimage import transform
  from tensorflow_addons.image import transform_ops
  from tensorflow_addons.utils import test_utils
label_desc: Use image node_id 4 for calling a global function with example usage: test_transform_reflect_fill_mode(dtype) without return types