After 100 iterations, the authors are calculating the mean prediction in:
output_mean = torch.cat(output_list, 0).mean(0)

and use this tensor to calculate the test_loss as well as the predictions.
PS: You can post code snippets by wrapping the complete code block into three backticks ```, which makes debugging a bit easier.