code: def execute(self, fn, *args, **kwargs):
      result = fn(*args, **kwargs)
      if isinstance(result, Future) or iscoroutine(result):
          future = ensure_future(result, loop=self.loop)
          self.futures.append(future)
          return Promise.resolve(future)
      return result
  
file_path: wandb/wandb/vendor/graphql-core-1.1/wandb_graphql/execution/executors/asyncio.py
imports: from __future__ import absolute_import
  from asyncio import Future, get_event_loop, iscoroutine, wait
  from wandb_promise import Promise
label_desc: Use image node_id 3 for calling the AsyncioExecutor obj's underlying member method code with example usage: obj.execute(fn) and returns: result, Promise