code: def failed_dispatch(loader, queue, error):
      # type: (DataLoader, Iterable[Loader], Exception) -> None
      """
      Do not cache individual loads if the entire batch dispatch fails,
      but still reject each request so they do not hang.
      """
      for l in queue:
          loader.clear(l.key)
          l.reject(error)
  
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 5 for calling a global function with example usage: failed_dispatch(loader, queue, error) without return types