keras/src/metrics/confusion_metrics.py/_ConfusionMatrixConditionCount/get_config
class _ConfusionMatrixConditionCount:    def get_config(self):
        config = {"thresholds": self.init_thresholds}
        base_config = super().get_config()
        return {**base_config, **config}