code: def test_debug_print(self):
      cmd = self.cmd
      with captured_stdout() as stdout:
          cmd.debug_print("xxx")
      stdout.seek(0)
      self.assertEqual(stdout.read(), "")
  
      debug.DEBUG = True
      try:
          with captured_stdout() as stdout:
              cmd.debug_print("xxx")
          stdout.seek(0)
          self.assertEqual(stdout.read(), "xxx\n")
      finally:
          debug.DEBUG = False
  
imports: import unittest
  import os
  from test.test_support import captured_stdout, run_unittest
  from distutils.cmd import Command
  from distutils.dist import Distribution
  from distutils.errors import DistutilsOptionError
  from distutils import debug
label_desc: Use image node_id 8 for calling the CommandTestCase obj's underlying member method code with example usage: obj.test_debug_print() without return types