code: def test_cancel_futures_wait_false(self):
      # Can only be reliably tested for TPE, since PPE often hangs with
      # `wait=False` (even without *cancel_futures*).
      rc, out, err = assert_python_ok(
          "-c",
          """if True:
              from concurrent.futures import ThreadPoolExecutor
              from test.test_concurrent_futures.test_shutdown import sleep_and_print
              if __name__ == "__main__":
                  t = ThreadPoolExecutor()
                  t.submit(sleep_and_print, .1, "apple")
                  t.shutdown(wait=False, cancel_futures=True)
              """,
      )
      # Errors in atexit hooks don't change the process exit code, check
      # stderr manually.
      self.assertFalse(err)
      self.assertEqual(out.strip(), b"apple")
  
imports: import signal
  import sys
  import threading
  import time
  import unittest
  from concurrent import futures
  from test import support
  from test.support.script_helper import assert_python_ok
  from .util import BaseTestCase, ThreadPoolMixin, ProcessPoolForkMixin, ProcessPoolForkserverMixin, ProcessPoolSpawnMixin, create_executor_tests, setup_module
label_desc: Use image node_id 7 for calling the ThreadPoolShutdownTest obj's underlying member method code with example usage: obj.test_cancel_futures_wait_false() without return types