code: def test_do_resolve_fail_on_call():
      def raises(resolve, reject):
          raise Exception("Fails")
  
      p1 = Promise(raises)
      assert not p1.is_fulfilled
      assert str(p1.reason) == "Fails"
  
imports: from time import sleep
  from pytest import raises, fixture
  from threading import Event
  from promise import Promise, is_thenable, promisify, promise_for_dict
  from concurrent.futures import Future
  from threading import Thread
  from .utils import assert_exception
label_desc: Use image node_id 22 for calling a global function with example usage: test_do_resolve_fail_on_call() without return types