code: def test_assert_python_triggered(self):
      if not __debug__:
          # Python assertions only be tested when in debug mode.
          return
  
      side_effect_trace = []
      tracer = object()
  
      def expression_with_side_effects():
          side_effect_trace.append(tracer)
          return "test message"
  
      with self.assertRaisesRegex(AssertionError, "test message"):
          exceptions.assert_stmt(False, expression_with_side_effects)
      self.assertListEqual(side_effect_trace, [tracer])
  
file_path: tensorflow/tensorflow/python/autograph/operators/exceptions_test.py
imports: from tensorflow.python.autograph.operators import exceptions
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import test
label_desc: Use image node_id 5 for calling the ExceptionsTest obj's underlying member method code with example usage: obj.test_assert_python_triggered() and returns: str