code: def promise_with_wait(x, wait):
      return Promise.resolve(identity(x, wait))
  
file_path: wandb/wandb/vendor/promise-2.3.0/tests/test_issues.py
imports: from concurrent.futures import ThreadPoolExecutor
  from promise import Promise
  import time
  import weakref
  import gc
label_desc: Use image node_id 3 for calling a global function with example usage: promise_with_wait(x, wait) and returns: Promise