code: def setUp(self):
      super(BuildExtTestCase, self).setUp()
      self.tmp_dir = self.mkdtemp()
      self.xx_created = False
      sys.path.append(self.tmp_dir)
      self.addCleanup(sys.path.remove, self.tmp_dir)
      if sys.version > "2.6":
          import site
  
          self.old_user_base = site.USER_BASE
          site.USER_BASE = self.mkdtemp()
          from distutils.command import build_ext
  
          build_ext.USER_BASE = site.USER_BASE
  
imports: import sys
  import os
  from StringIO import StringIO
  import textwrap
  from distutils.core import Extension, Distribution
  from distutils.command.build_ext import build_ext
  from distutils import sysconfig
  from distutils.tests import support
  from distutils.errors import DistutilsSetupError, CompileError, DistutilsPlatformError
  import unittest
  from test import test_support
label_desc: Use image node_id 1 for calling the BuildExtTestCase obj's underlying member method code with example usage: obj.setUp() without return types