code: def test_quiet(self):
      bad_coding = os.path.join(
          os.path.dirname(__file__), "tokenizedata", "bad_coding2.py"
      )
      with support.captured_stderr() as stderr:
          self.assertIsNone(
              py_compile.compile(bad_coding, doraise=False, quiet=2)
          )
          self.assertIsNone(
              py_compile.compile(bad_coding, doraise=True, quiet=2)
          )
          self.assertEqual(stderr.getvalue(), "")
          with self.assertRaises(py_compile.PyCompileError):
              py_compile.compile(bad_coding, doraise=True, quiet=1)
  
imports: import functools
  import importlib.util
  import os
  import py_compile
  import shutil
  import stat
  import subprocess
  import sys
  import tempfile
  import unittest
  from test import support
  from test.support import os_helper, script_helper
label_desc: Use image node_id 15 for calling the PyCompileTestsBase obj's underlying member method code with example usage: obj.test_quiet() without return types