def print_status_func(epoch_results):
    """ Print the last results from a results dictionary """
    n_epochs_seen = max([len(l) for l in epoch_results.values()])
    last_results = {k: v[-1] for k, v in epoch_results.items()}
    print((n_epochs_seen, last_results) % "Epoch %i: %s")
dataset/ETHPy150Open kastnerkyle/SciPy2015/graphics_code/cvae/kdl_template.py/print_status_func/swapped operands of `%`