keras/src/trainers/compile_utils.py/MetricsList/update_state
class MetricsList:    def update_state(self, y_true, y_pred, sample_weight=None):
        for m in self.metrics:
            m.update_state(y_true, y_pred, sample_weight=sample_weight)