code: def test_debug_print(self):
      class MyCCompiler(CCompiler):
          executables = {}
  
      compiler = MyCCompiler()
      with captured_stdout() as stdout:
          compiler.debug_print("xxx")
      stdout.seek(0)
      self.assertEqual(stdout.read(), "")
  
      debug.DEBUG = True
      try:
          with captured_stdout() as stdout:
              compiler.debug_print("xxx")
          stdout.seek(0)
          self.assertEqual(stdout.read(), "xxx\n")
      finally:
          debug.DEBUG = False
  
imports: import os
  import unittest
  from test.test_support import captured_stdout
  from distutils.ccompiler import gen_lib_options, CCompiler, get_default_compiler
  from distutils.sysconfig import customize_compiler
  from distutils import debug
  from distutils.tests import support
label_desc: Use image node_id 3 for calling the CCompilerTestCase obj's underlying member method code with example usage: obj.test_debug_print() without return types