keras/src/trainers/compile_utils.py/CompileLoss/__call__
class CompileLoss:    def __call__(self, y_true, y_pred, sample_weight=None):
        with ops.name_scope(self.name):
            return self.call(y_true, y_pred, sample_weight)