code: def test_run_call_order__error_in_test(self):
      events = []
      result = LoggingResult(events)
  
      def setUp():
          events.append("setUp")
  
      def test():
          events.append("test")
          raise RuntimeError("raised by test")
  
      def tearDown():
          events.append("tearDown")
  
      expected = [
          "startTest",
          "setUp",
          "test",
          "addError",
          "tearDown",
          "stopTest",
      ]
      unittest.FunctionTestCase(test, setUp, tearDown).run(result)
      self.assertEqual(events, expected)
  
file_path: cpython/Lib/test/test_unittest/test_functiontestcase.py
imports: import unittest
  from test.test_unittest.support import LoggingResult
label_desc: Use image node_id 3 for calling the Test_FunctionTestCase obj's underlying member method code with example usage: obj.test_run_call_order__error_in_test() without return types