code: def test_all_completed(self):
      future1 = self.executor.submit(divmod, 2, 0)
      future2 = self.executor.submit(mul, 2, 21)
  
      finished, pending = futures.wait(
          [
              SUCCESSFUL_FUTURE,
              CANCELLED_AND_NOTIFIED_FUTURE,
              EXCEPTION_FUTURE,
              future1,
              future2,
          ],
          return_when=futures.ALL_COMPLETED,
      )
  
      self.assertEqual(
          set(
              [
                  SUCCESSFUL_FUTURE,
                  CANCELLED_AND_NOTIFIED_FUTURE,
                  EXCEPTION_FUTURE,
                  future1,
                  future2,
              ]
          ),
          finished,
      )
      self.assertEqual(set(), pending)
  
imports: import sys
  import threading
  import time
  import unittest
  from concurrent import futures
  from test import support
  from .util import CANCELLED_FUTURE, CANCELLED_AND_NOTIFIED_FUTURE, EXCEPTION_FUTURE, SUCCESSFUL_FUTURE, create_executor_tests, setup_module, BaseTestCase, ThreadPoolMixin, ProcessPoolForkMixin, ProcessPoolForkserverMixin, ProcessPoolSpawnMixin
label_desc: Use image node_id 7 for calling the WaitTests obj's underlying member method code with example usage: obj.test_all_completed() without return types