class_docstr: Test for tfp.math.interp_regular_1d_grid.
class_docstr_tok: ["Test","for","tfp.math.interp_regular_1d_grid","."]
code: def test_scalar_valued_function_and_get_matrix_of_results(self):
      y_ref = tf.exp(tf.linspace(start=0.0, stop=10.0, num=200))
      x = [[1.1, 1.2], [2.1, 2.2]]
      y = interpolation.interp_regular_1d_grid(
          x, x_ref_min=0.0, x_ref_max=10.0, y_ref=y_ref
      )
      self.assertAllEqual((2, 2), y.shape)
      self.assertAllClose(np.exp(x), self.evaluate(y), rtol=1e-3)
  
imports: import numpy
  from scipy import interpolate
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math import gradient
  from tensorflow_probability.python.math import interpolation
label_desc: Use image node_id 8 for calling the InterpRegular1DGridTest obj's underlying member method code with example usage: obj.test_scalar_valued_function_and_get_matrix_of_results() without return types