code: def test_benchmark_promise_resolve(benchmark):
      def create_promise():
          return Promise.resolve(True)
  
      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 2 for calling a global function with example usage: test_benchmark_promise_resolve(benchmark) and returns: Promise