def PutStat(self, stats, stat, fmt, **kwargs):
    """Writes a stat to output.

    Will color the stat if the stat is non-zero and the output file is stdout.

    Args:
      stats: A dict with all the stats.
      stat: The STATUS to check.
      fmt: What to say about the stat.
      **kwargs: Passed on to print.
    """
    assert stat in stats and stat in COLORS
    num = stats[stat]
    kwargs.setdefault('end', ', ')
    if num:
      kwargs['color'] = COLORS[stat]
    self.Print(num % fmt, **kwargs)
dataset/ETHPy150Open google/vroom/vroom/output.py/ActionLogger.PutStat/swapped operands of `%`