code: def do_resolve_reject(self, key, resolve, reject):
      # type: (Hashable, Callable, Callable) -> None
      # Enqueue this Promise to be dispatched.
      self._queue.append(
          Loader(key=key, resolve=resolve, reject=reject)
      )
      # Determine if a dispatch of this queue should be scheduled.
      # A single dispatch should be scheduled per queue at the time when the
      # queue changes from "empty" to "full".
      if len(self._queue) == 1:
          if self.batch:
              # If batching, schedule a task to dispatch the queue.
              enqueue_post_promise_job(
                  partial(dispatch_queue, self), self._scheduler
              )
          else:
              # Otherwise dispatch the (queue of one) immediately.
              dispatch_queue(self)
  
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 3 for calling the DataLoader obj's underlying member method code with example usage: obj.do_resolve_reject(key, resolve, reject) without return types