code: def test_first_completed_some_already_completed(self):
      future1 = self.executor.submit(time.sleep, 1.5)
  
      finished, pending = futures.wait(
          [CANCELLED_AND_NOTIFIED_FUTURE, SUCCESSFUL_FUTURE, future1],
          return_when=futures.FIRST_COMPLETED,
      )
  
      self.assertEqual(
          set([CANCELLED_AND_NOTIFIED_FUTURE, SUCCESSFUL_FUTURE]),
          finished,
      )
      self.assertEqual(set([future1]), 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 3 for calling the WaitTests obj's underlying member method code with example usage: obj.test_first_completed_some_already_completed() without return types