docstr: Tests that interpolate_with_weights works correctly.
docstr_tok: ["Tests","that","interpolate_with_weights","works","correctly","."]
code: def test_interpolate_with_weights_preset(self, positions, knots):
      """Tests that interpolate_with_weights works correctly."""
      degree = 1
      cyclical = False
      interp1 = bspline.interpolate(knots, positions, degree, cyclical)
      weights = bspline.knot_weights(positions, 2, degree, cyclical)
      interp2 = bspline.interpolate_with_weights(knots, weights)
  
      self.assertAllClose(interp1, interp2)
  
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 10 for calling the BSplineTest obj's underlying member method code with example usage: obj.test_interpolate_with_weights_preset(positions, knots) without return types