docstr: Tests that exception is raised when wrong number of knots is given.
docstr_tok: ["Tests","that","exception","is","raised","when","wrong","number","of","knots","is","given","."]
code: def test_interpolate_with_weights_exception_is_raised(
      self, error_msg, shapes
  ):
      """Tests that exception is raised when wrong number of knots is given."""
      self.assert_exception_is_raised(
          bspline.interpolate_with_weights, error_msg, shapes=shapes
      )
  
file_path: graphics/tensorflow_graphics/math/interpolation/tests/bspline_test.py
imports: from absl.testing import parameterized
  import numpy
  from tensorflow_graphics.math.interpolation import bspline
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 9 for calling the BSplineTest obj's underlying member method code with example usage: obj.test_interpolate_with_weights_exception_is_raised(error_msg, shapes) without return types