code: def test_all_finite_raises(self):
      with self.test_session():
          x = tf.constant([12.5, np.inf])
          with self.assertRaisesOpError("Inf"):
              to_simplex(x).eval()
          x = tf.constant([12.5, np.nan])
          with self.assertRaisesOpError("NaN"):
              to_simplex(x).eval()
  
file_path: edward/tests/util/to_simplex_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import tensorflow
  from edward.util import to_simplex
label_desc: Use image node_id 3 for calling the test_to_simplex_class obj's underlying member method code with example usage: obj.test_all_finite_raises() without return types