code: def test_promise_reject_skip_all_other_values():
      e1 = Exception("Error1")
      e2 = Exception("Error2")
      p = Promise()
      all_promises = all([1, Promise.reject(e1), Promise.reject(e2)])
  
      with raises(Exception) as exc_info:
          all_promises.get()
  
      assert str(exc_info.value) == "Error1"
  
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 7 for calling a global function with example usage: test_promise_reject_skip_all_other_values() without return types