def _log_stats(stats_at_k: Iterable[Union[int, float]],
               total_count: int) -> None:
  """Logs the statistics as percentages of the total count."""
  logging.info(", ".join(
      "{:.1f}".format(value * 100. / total_count) for value in stats_at_k))
Logs the statistics as percentages of the total count.
language/casper/evaluate/evaluate_retrieval.py