code: def test_promisify_function_rejected(resolve):
      promisified_func = promisify(sum_function)
  
      result = promisified_func(None, None)
      assert isinstance(result, Promise)
      with raises(Exception) as exc_info_promise:
          result.get()
  
      with raises(Exception) as exc_info:
          sum_function(None, None)
  
      assert str(exc_info_promise.value) == str(exc_info.value)
  
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 43 for calling a global function with example usage: test_promisify_function_rejected(resolve) without return types