code: def _chain_resolve_future(new_future, old_future):
      _chain_check_cycle(new_future, old_future)
      done_cb = functools.partial(_chain_resolve, [new_future])
      old_future.add_done_callback(done_cb)
  
file_path: mpi4py/src/mpi4py/futures/aplus.py
imports: import functools
  import threading
  import weakref
  from ._base import Future
label_desc: Use image node_id 5 for calling a global function with example usage: _chain_resolve_future(new_future, old_future) without return types