code: def metric_value_is_better(new: float, old: float, metric: str) -> bool:
      
      if C.METRIC_MAXIMIZE[metric]:
          return new > old
      else:
          return new < old
docs: Returns true if new value is strictly better than old for given metric.