docstr: Tests that distortion_factor produces the expected outputs.
docstr_tok: ["Tests","that","distortion_factor","produces","the","expected","outputs","."]
code: def test_distortion_factor_random_positive_distortion_coefficient(
      self,
  ):
      """Tests that distortion_factor produces the expected outputs."""
      squared_radii = _get_random_radii() * 2.0
      distortion_coefficient = _get_random_coefficient() * 2.0
  
      distortion, mask = quadratic_radial_distortion.distortion_factor(
          squared_radii, distortion_coefficient
      )
  
      distortion_coefficient = _make_shape_compatible(
          distortion_coefficient
      )
      with self.subTest(name="distortion"):
          self.assertAllClose(
              1.0 + distortion_coefficient * squared_radii, distortion
          )
  
      # No overflow when distortion_coefficient >= 0.0.
      with self.subTest(name="mask"):
          self.assertAllInSet(mask, (False,))
  
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 1 for calling the QuadraticRadialDistortionTest obj's underlying member method code with example usage: obj.test_distortion_factor_random_positive_distortion_coefficient() without return types