code: def test_rejected():
      p = Promise.rejected(Exception("Static rejected"))
      assert p.is_rejected
      with raises(Exception) as exc_info:
          p.get()
      assert str(exc_info.value) == "Static rejected"
  
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 4 for calling a global function with example usage: test_rejected() without return types