docstr: Tests that knot weights are correct when degree < num_knots - 1.
docstr_tok: ["Tests","that","knot","weights","are","correct","when","degree","<","num_knots","-","1","."]
code: def test_knot_weights_preset(self, position, weights, degree):
      """Tests that knot weights are correct when degree < num_knots - 1."""
      self.assertAllClose(
          bspline.knot_weights(
              position, num_knots=3, degree=degree, cyclical=True
          ),
          weights,
      )
  
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 7 for calling the BSplineTest obj's underlying member method code with example usage: obj.test_knot_weights_preset(position, weights, degree) without return types