def METHOD_NAME(self, batch_results: list, on_epoch_end: bool = None):
    losses = []
    for batch_result in batch_results:
        losses.append(batch_result.loss)
    loss = (sum(losses) / len(losses)).item()
    logs = Logs()
    logs.add_scalar("loss", loss)
    return Output(
        logs=logs,
    )