code: def test_await_time():
      def resolve_or_reject(resolve, reject):
          sleep(0.1)
          resolve(True)
  
      p = Promise(resolve_or_reject)
      assert p.get() is True
  
imports: from asyncio import coroutine
  from pytest import mark
  from time import sleep
  from promise import Promise
label_desc: Use image node_id 2 for calling a global function with example usage: test_await_time() without return types