class_docstr: 1D interpolation problem used for regression testing.
class_docstr_tok: ["1D","interpolation","problem","used","for","regression","testing","."]
docstr: Takes a tensor, evaluates the test function, and returns a
  tensor.
docstr_tok: ["Takes","a","tensor",",","evaluates","the","test","function",",","and","returns","a","tensor","."]
code: def test_function(self, x):
      """Takes a tensor, evaluates the test function, and returns a
      tensor."""
      return tf.reduce_mean(
          tf.pow((x - 0.5), 3) - 0.25 * x + 10 * tf.sin(x * 10),
          2,
          keepdims=True,
      )
  
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 1 for calling the _QuadraticPlusSinProblem1D obj's underlying member method code with example usage: obj.test_function(x) and returns: tf