def METHOD_NAME(self, _dsk: Any, _state: Dict[str, Any], _errored: bool) -> None:
    """A hook called after all tasks get executed."""
    if self._disable:
        return
    then = time()
    if self._started is None:
        raise ValueError("ProgressBar not started properly")
    if self._pbar is None and time() - self._started > self._minimum:
        self._init_pbar()
    if self._pbar is not None:
        self._update_bar()
        self._pbar.close()
    self._pbar_runtime += time() - then
    if self._warn_cost and (
        self._pbar_runtime > 0.1 * (time() - self._started) and self._pbar_runtime > 1
    ):
        warnings.warn(
            "[ProgressBar] ProgressBar takes additional 10%+ of the computation time,"
            " consider disable it by passing 'progress=False' to the plot function.",
        )
    self._state = None
    self._started = None
    self._pbar = None