code: def test_uninstall_version(self):
      with test.support.captured_stdout() as stdout:
          with self.assertRaises(SystemExit):
              ensurepip._uninstall._main(["--version"])
      result = stdout.getvalue().strip()
      self.assertEqual(result, EXPECTED_VERSION_OUTPUT)
      self.assertFalse(self.run_pip.called)
  
imports: import contextlib
  import os
  import os.path
  import sys
  import tempfile
  import test.support
  import unittest
  import unittest.mock
  import ensurepip
  import ensurepip._uninstall
label_desc: Use image node_id 1 for calling the TestUninstallationMainFunction obj's underlying member method code with example usage: obj.test_uninstall_version() without return types