code: def test_1d_interpolation():
      """Regression test for interpolation with 1-D points."""
  
      tp = _QuadraticPlusSinProblem1D()
      (query_points, _, train_points, train_values) = tp.get_problem(
          dtype="float64"
      )
  
      for order in (1, 2, 3):
          for reg_weight in (0, 0.01):
              interp = interpolate_spline(
                  train_points,
                  train_values,
                  query_points,
                  order,
                  reg_weight,
              )
  
              target_interpolation = tp.HARDCODED_QUERY_VALUES[
                  (order, reg_weight)
              ]
              target_interpolation = np.array(target_interpolation)
  
              np.testing.assert_allclose(
                  interp[0, :, 0], target_interpolation
              )
  
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 2 for calling a global function with example usage: test_1d_interpolation() without return types