code: def test_promise_coroutine():
      @coroutine
      def my_coro():
          yield from Promise.resolve(True)
  
      promise = Promise.resolve(my_coro())
      assert isinstance(promise, Promise)
  
imports: from asyncio import coroutine
  from pytest import mark
  from time import sleep
  from promise import Promise
label_desc: Use image node_id 3 for calling a global function with example usage: test_promise_coroutine() without return types