docstr: Checks that the assert works for `Inf` or `NaN` values.
docstr_tok: ["Checks","that","the","assert","works","for","`","Inf","`","or","`","NaN","`","values","."]
code: def test_assert_no_infs_or_nans_raises_exception_for_nan(self, value):
      """Checks that the assert works for `Inf` or `NaN` values."""
      vector_input = (value,)
  
      with self.assertRaisesRegex(  # pylint: disable=g-error-prone-assert-raises
          tf.errors.InvalidArgumentError, "Inf or NaN detected."
      ):
          self.evaluate(asserts.assert_no_infs_or_nans(vector_input))
  
imports: from absl.testing import flagsaver
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_graphics.util import asserts
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 20 for calling the AssertsTest obj's underlying member method code with example usage: obj.test_assert_no_infs_or_nans_raises_exception_for_nan(value) without return types