code: def test_benchmark_promise_creation_with_resolve(benchmark):
      do_resolve = lambda resolve, reject: resolve(True)
  
      def create_promise():  # unnecessary function call
          p = Promise(do_resolve)
          # p._wait()
          return p
  
      result = benchmark(create_promise).get()
      assert result == True
  
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 5 for calling a global function with example usage: test_benchmark_promise_creation_with_resolve(benchmark) and returns: p