code: def wait(self, promise, timeout=None):
      e = Event()
  
      def on_resolve_or_reject(_):
          e.set()
  
      promise._then(on_resolve_or_reject, on_resolve_or_reject)
  
      # We can't use the timeout in Asyncio event
      e.wait()
  
imports: from __future__ import absolute_import
  from asyncio import get_event_loop, Event
label_desc: Use image node_id 3 for calling the AsyncioScheduler obj's underlying member method code with example usage: obj.wait(promise, timeout) without return types