code: def test_all_finite_raises(self):
      with self.test_session():
          a = np.inf * tf.ones([5])
          b = tf.diag(tf.ones([5]))
          with self.assertRaisesOpError("Inf"):
              dot(a, b).eval()
          a = tf.ones([5]) * np.arange(5)
          b = np.inf * tf.diag(tf.ones([5]))
          with self.assertRaisesOpError("Inf"):
              dot(a, b).eval()
  
file_path: edward/tests/util/dot_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 dot
label_desc: Use image node_id 2 for calling the test_dot_class obj's underlying member method code with example usage: obj.test_all_finite_raises() without return types