docstr: Checks whether safe shrinking makes tensor safe for tf.acos(x).
docstr_tok: ["Checks","whether","safe","shrinking","makes","tensor","safe","for","tf.acos","(","x",")","."]
code: def test_safe_shrink_exception_not_raised(self, dtype):
      """Checks whether safe shrinking makes tensor safe for tf.acos(x)."""
      tensor = tf.convert_to_tensor(
          value=_pick_random_vector(), dtype=dtype
      )
      tensor = tensor * tensor
      norm_tensor = tensor / tf.reduce_max(
          input_tensor=tensor, axis=-1, keepdims=True
      )
      eps = asserts.select_eps_for_addition(dtype)
      norm_tensor += eps
  
      safe_tensor = safe_ops.safe_shrink(norm_tensor, -1.0, 1.0)
      self.assert_exception_is_not_raised(
          tf.acos, shapes=[], x=safe_tensor
      )
  
file_path: graphics/tensorflow_graphics/util/tests/safe_ops_test.py
imports: from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_graphics.util import asserts
  from tensorflow_graphics.util import safe_ops
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 5 for calling the SafeOpsTest obj's underlying member method code with example usage: obj.test_safe_shrink_exception_not_raised(dtype) without return types