code: def _done_callback(fut, task):
      if task.cancelled():
          fut.cancel()
          return
  
      exc = task.exception()
      if exc is not None:
          fut.set_exception(exc)
          return
  
      fut.set_result(task.result())
  
file_path: mars/mars/lib/aio/lru.py
imports: import asyncio
  import os
  import weakref
  from collections import OrderedDict
  from functools import _CacheInfo, _make_key, partial, wraps
label_desc: Use image node_id 3 for calling a global function with example usage: _done_callback(fut, task) without return types