code: def get_metric(self, reset: bool) -> Union[float, Tuple[float, ...], Dict[str, float], Dict[str, List[float]]]:
          
          raise NotImplementedError
docs: Compute and return the metric. Optionally also call :func:`self.reset`.