code: def test_mix(self):
      x = tf.constant(0)
      y = tf.constant(10)
      conditions = [
          (x > 1, lambda: tf.constant(1)),
          (y < 1, raise_exception_in_eager_mode(tf.constant(2))),
          (tf.constant(False), raise_exception),
          (tf.constant(True), lambda: tf.constant(3)),
      ]
      z = ps.case(conditions, default=lambda: raise_exception)
      self.assertEqual(self.evaluate(z), 3)
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 3 for calling the CaseTest obj's underlying member method code with example usage: obj.test_mix() without return types