def METHOD_NAME(self, outputs):
    result, y, y_hat = shared_epoch_end(
        outputs, is_validation=False, epoch=self.current_epoch,
        transformer=self.transformer)
    for key, value in result.items():
        self.log(key, value)
    self.test_predictions = (y, y_hat)
    return super().METHOD_NAME(outputs)