code: def test_benchmark_promise_all_promise(benchmark):
      values = [Promise.resolve(i) for i in range(100000)]
  
      def create_promise():  # unnecessary function call
          return Promise.all(values)
  
      result = benchmark(create_promise)
  
      assert isinstance(result, Promise)
      assert result.get() == list(range(100000))
  
file_path: wandb/wandb/vendor/promise-2.3.0/tests/test_benchmark.py
imports: from pytest import raises
  import time
  from promise import Promise, promisify, is_thenable
label_desc: Use image node_id 9 for calling a global function with example usage: test_benchmark_promise_all_promise(benchmark) and returns: Promise