code: def identity(x, wait):
      if wait:
          time.sleep(wait)
      return x
  
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 2 for calling a global function with example usage: identity(x, wait) and returns: x