<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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)