code: def test_promise_rejected():
      e = Exception("Error")
      all_promises = all([1, 2, Promise.reject(e)])
  
      with raises(Exception) as exc_info:
          all_promises.get()
  
      assert str(exc_info.value) == "Error"
  
file_path: wandb/wandb/vendor/promise-2.3.0/tests/test_promise_list.py
imports: from pytest import raises
  from promise import Promise
  from promise.promise_list import PromiseList
label_desc: Use image node_id 6 for calling a global function with example usage: test_promise_rejected() without return types