docstr: Tests whether exception is raised when weights are negative.
docstr_tok: ["Tests","whether","exception","is","raised","when","weights","are","negative","."]
code: def test_interpolate_negative_weights_raised(
      self, dim_points, num_points, num_outputs, num_pts_to_interpolate
  ):
      """Tests whether exception is raised when weights are negative."""
      points, weights, indices = self._get_tensors_from_shapes(
          num_points, dim_points, num_outputs, num_pts_to_interpolate
      )
      weights *= -1.0
  
      with self.assertRaises(tf.errors.InvalidArgumentError):
          result = weighted.interpolate(
              points=points,
              weights=weights,
              indices=indices,
              normalize=True,
          )
          self.evaluate(result)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import numpy
  from six.moves import range
  import tensorflow
  from tensorflow_graphics.math.interpolation import weighted
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 5 for calling the WeightedTest obj's underlying member method code with example usage: obj.test_interpolate_negative_weights_raised(dim_points, num_points, num_outputs, num_pts_to_interpolate) without return types