in scripts/metric_reporter/reporter/suite_reporter.py [0:0]
def _calculate_rate(value: int, total: int) -> float | None:
"""Calculate the percentage rate of a given value over the total.
Args:
value (int): The numerator for the rate calculation.
total (int): The denominator for the rate calculation.
Returns:
float | None: The calculated rate as a percentage, or None if the total is 0.
"""
return round((value / total) * 100, 2) if total > 0 else None