code: def setUp(self):
      super(CoreTestCase, self).setUp()
      self.old_stdout = sys.stdout
      self.cleanup_testfn()
      self.old_argv = sys.argv, sys.argv[:]
      self.addCleanup(log.set_threshold, log._global_log.threshold)
  
imports: import StringIO
  import distutils.core
  import os
  import shutil
  import sys
  import test.test_support
  from test.test_support import captured_stdout, run_unittest
  import unittest
  from distutils.tests import support
  from distutils import log
label_desc: Use image node_id 1 for calling the CoreTestCase obj's underlying member method code with example usage: obj.setUp() without return types