code: def _release_futures(state):
      active_futures = []
      for f in state.futures:
          if f.done():
              _maybe_log_future_error(f)
              log.debug("Releasing future %s", f.key)
              f.release()
          else:
              active_futures.append(f)
      state.futures = active_futures
  
imports: import argparse
  import logging
  import time
  from guild import _api
  from guild import util
  from .None import gen_queue
label_desc: Use image node_id 16 for calling a global function with example usage: _release_futures(state) without return types