code: def enqueue_post_promise_job(fn, scheduler):
      # type: (Callable, Any) -> None
      global cache
      if not hasattr(cache, "resolved_promise"):
          cache.resolved_promise = Promise.resolve(None)
      if not scheduler:
          scheduler = get_default_scheduler()
  
      def on_promise_resolve(v):
          # type: (Any) -> None
          async_instance.invoke(fn, scheduler)
  
      cache.resolved_promise.then(on_promise_resolve)
  
file_path: wandb/wandb/vendor/promise-2.3.0/wandb_promise/dataloader.py
imports: from collections import namedtuple
  from functools import partial
  from threading import local
  from .promise import Promise, async_instance, get_default_scheduler
label_desc: Use image node_id 2 for calling a global function with example usage: enqueue_post_promise_job(fn, scheduler) without return types