def METHOD_NAME(self, data):
    x, y = data
    # Inference step
    y_pred = self.model(x, training=False)
    # Update metrics
    for metric in self.metrics:
        metric.update_state(y, y_pred)
    return {m.name: m.result() for m in self.metrics}