def result_task_label(self, task_label: int) -> Dict[int, float]:
        """
        Retrieves the running top-k accuracy.

        Calling this method will not change the internal state of the metric.

        :param task_label: if None, return the entire dictionary of accuracies
            for each task. Otherwise return the dictionary

        :return: A dictionary `{task_label: topk_accuracy}`, where the accuracy
            is a float value between 0 and 1.
        """
        assert task_label is not None
        return {task_label: self._topk_acc_dict[task_label].result()}

        Retrieves the running top-k accuracy.

        Calling this method will not change the internal state of the metric.

        :param task_label: if None, return the entire dictionary of accuracies
            for each task. Otherwise return the dictionary

        :return: A dictionary `{task_label: topk_accuracy}`, where the accuracy
            is a float value between 0 and 1.
        
avalanche/evaluation/metrics/topk_acc.py