def METHOD_NAME(self, idx, data, outputs):
    y = data["image"][idx]
    y_pred = outputs[idx].cpu()
    metrics = self.metrics_module.apply(y, y_pred)
    row = [
        data["participant_id"][idx],
        data["session_id"][idx],
        data[f"{self.mode}_id"][idx].item(),
    ]
    for metric in self.evaluation_metrics:
        row.append(metrics[metric])
    return [row]