code: def test_partially_or_fully_unknown_shape(
      shape, interpolation_order, num_boundary_points
  ):
      control_point_locations = (
          np.asarray([3.0, 3.0]).reshape(1, 1, 2).astype(np.float32)
      )
      control_point_displacements = (
          np.asarray([0.25, -0.5]).reshape(1, 1, 2).astype(np.float32)
      )
      fn = tf.function(sparse_image_warp).get_concrete_function(
          image=tf.TensorSpec(shape=shape.image, dtype=tf.float32),
          source_control_point_locations=tf.TensorSpec(
              shape=shape.source_control_point_locations,
              dtype=tf.float32,
          ),
          dest_control_point_locations=tf.TensorSpec(
              shape=shape.dest_control_point_locations, dtype=tf.float32
          ),
          interpolation_order=interpolation_order,
          num_boundary_points=num_boundary_points,
      )
      image = tf.ones(shape=shape.input, dtype=tf.float32)
      expected_output = sparse_image_warp(
          image,
          control_point_locations,
          control_point_locations + control_point_displacements,
          interpolation_order=interpolation_order,
          num_boundary_points=num_boundary_points,
      )
      output = fn(
          image,
          control_point_locations,
          control_point_locations + control_point_displacements,
          interpolation_order=interpolation_order,
          num_boundary_points=num_boundary_points,
          regularization_weight=0.0,
          name="sparse_image_warp",
      )
      np.testing.assert_equal(
          output[0].numpy(), expected_output[0].numpy()
      )
      np.testing.assert_equal(
          output[1].numpy(), expected_output[1].numpy()
      )
  
file_path: addons/tensorflow_addons/image/tests/sparse_image_warp_test.py
imports: from collections import namedtuple
  import numpy
  import pytest
  import tensorflow
  from tensorflow_addons.image import sparse_image_warp
  from tensorflow_addons.image.sparse_image_warp import _get_boundary_locations
  from tensorflow_addons.image.sparse_image_warp import _get_grid_locations
  from tensorflow_addons.utils.resource_loader import get_path_to_datafile
label_desc: Use image node_id 10 for calling a global function with example usage: test_partially_or_fully_unknown_shape(shape, interpolation_order, num_boundary_points) without return types