code: def test_unexpected_success(self):
      class Foo(unittest.TestCase):
          @unittest.expectedFailure
          def test_die(self):
              pass
  
      events = []
      result = LoggingResult(events)
      test = Foo("test_die")
      self.assertIs(test.run(result), result)
      self.assertEqual(
          events, ["startTest", "addUnexpectedSuccess", "stopTest"]
      )
      self.assertFalse(result.failures)
      self.assertFalse(result.expectedFailures)
      self.assertEqual(result.unexpectedSuccesses, [test])
      self.assertFalse(result.wasSuccessful())
  
imports: import unittest
  from test.test_unittest.support import LoggingResult
label_desc: Use image node_id 16 for calling the Test_TestSkipping obj's underlying member method code with example usage: obj.test_unexpected_success() without return types