docstr: Tests that an exception is raised when `near` is not strictly positive.
docstr_tok: ["Tests","that","an","exception","is","raised","when","`","near","`","is","not","strictly","positive","."]
code: def test_ndc_to_screen_exception_near_raised(self):
      """Tests that an exception is raised when `near` is not strictly positive."""
  
      point = np.random.uniform(size=(3,))
      lower_left_corner = np.random.uniform(size=(2,))
      screen_dimensions = np.random.uniform(1.0, 2.0, size=(2,))
      near = np.random.uniform(-1.0, 0.0, size=(1,))
      far = np.random.uniform(1.0, 2.0, size=(1,))
  
      with self.subTest("negative_near"):
          with self.assertRaises(tf.errors.InvalidArgumentError):
              self.evaluate(
                  glm.ndc_to_screen(
                      point,
                      lower_left_corner,
                      screen_dimensions,
                      near,
                      far,
                  )
              )
  
      with self.subTest("zero_near"):
          with self.assertRaises(tf.errors.InvalidArgumentError):
              self.evaluate(
                  glm.ndc_to_screen(
                      point,
                      lower_left_corner,
                      screen_dimensions,
                      np.array((0.0,)),
                      far,
                  )
              )
  
imports: import math
  from absl.testing import flagsaver
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_graphics.geometry.transformation import look_at
  from tensorflow_graphics.rendering.camera import perspective
  from tensorflow_graphics.rendering.opengl import math
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 19 for calling the MathTest obj's underlying member method code with example usage: obj.test_ndc_to_screen_exception_near_raised() without return types