code: def _wait_for_completed_worker(results):
      import time
  
      if len(results) == 0:
          return None
  
      while True:
          completed = False
          for worker_id, result in results.items():
              if result is None or result.done():
                  completed = True
                  break
          if completed:
              del results[worker_id]
              return worker_id
          else:
              time.sleep(1)
  
file_path: interpret/python/powerlift/src/powerlift/executors/azure_ci.py
imports: from powerlift.executors.localmachine import LocalMachine
  from powerlift.bench.store import Store
  from typing import Iterable, List
  from powerlift.executors.base import handle_err
label_desc: Use image node_id 1 for calling a global function with example usage: _wait_for_completed_worker(results) and returns: None, worker_id