code: def test_bad_promises():
      all_promises = all(None)
  
      with raises(Exception) as exc_info:
          all_promises.get()
  
      assert (
          str(exc_info.value)
          == "PromiseList requires an iterable. Received None."
      )
  
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 3 for calling a global function with example usage: test_bad_promises() without return types