docstr: Tests that an exception is raised when the squared radius is negative.
docstr_tok: ["Tests","that","an","exception","is","raised","when","the","squared","radius","is","negative","."]
code: def test_both_negative_radius_exception_raised(
      self, distortion_function
  ):
      """Tests that an exception is raised when the squared radius is negative."""
      squared_radii = _get_zeros_radii() - 0.5
      distortion_coefficient = _get_random_coefficient() - 0.5
  
      with self.assertRaises(tf.errors.InvalidArgumentError):
          self.evaluate(
              distortion_function(squared_radii, distortion_coefficient)
          )
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_graphics.rendering.camera import quadratic_radial_distortion
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 5 for calling the QuadraticRadialDistortionTest obj's underlying member method code with example usage: obj.test_both_negative_radius_exception_raised(distortion_function) without return types