code: def test_x_grid_points_and_y_ref_must_have_same_n_points_or_raises(
      self,
  ):
      with self.assertRaisesRegexp(ValueError, "the number of points"):
          interpolation.batch_interp_rectilinear_nd_grid(
              x=[[0.5]],
              x_grid_points=([0, 1, 2.0],),
              y_ref=[1.0, 2.0],
              axis=0,
          )
  
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 3 for calling the BatchInterpRectilinearNDGridTest obj's underlying member method code with example usage: obj.test_x_grid_points_and_y_ref_must_have_same_n_points_or_raises() without return types