code: def test_fully_unspecified_shape():
      """Ensure that erreor is thrown when input/output dim unspecified."""
      tp = _QuadraticPlusSinProblemND()
      (query_points, _, train_points, train_values) = tp.get_problem(
          dtype="float64"
      )
  
      feature_dim = query_points.shape[-1]
      value_dim = train_values.shape[-1]
  
      order = 1
      reg_weight = 0.01
  
      # Get concrete functions such that the batch size, number of train points,
      # and number of query points are not known at graph construction time.
      with pytest.raises(ValueError):
          tf.function(interpolate_spline).get_concrete_function(
              tf.TensorSpec(
                  shape=[None, None, None], dtype=train_points.dtype
              ),
              tf.TensorSpec(
                  shape=[None, None, value_dim],
                  dtype=train_values.dtype,
              ),
              tf.TensorSpec(
                  shape=[None, None, feature_dim],
                  dtype=query_points.dtype,
              ),
              order,
              reg_weight,
          )
  
      with pytest.raises(ValueError):
          tf.function(interpolate_spline).get_concrete_function(
              tf.TensorSpec(
                  shape=[None, None, feature_dim],
                  dtype=train_points.dtype,
              ),
              tf.TensorSpec(
                  shape=[None, None, None], dtype=train_values.dtype
              ),
              tf.TensorSpec(
                  shape=[None, None, feature_dim],
                  dtype=query_points.dtype,
              ),
              order,
              reg_weight,
          )
  
file_path: addons/tensorflow_addons/image/tests/interpolate_spline_test.py
imports: import numpy
  import pytest
  from scipy import interpolate
  import tensorflow
  from tensorflow_addons.image import interpolate_spline
label_desc: Use image node_id 5 for calling a global function with example usage: test_fully_unspecified_shape() without return types