function getMetricScoreLevel(value, cutoffs) {
  if (typeof value !== 'number') return 'error';
  if (value <= cutoffs[0]) return 'pass';
  if (value <= cutoffs[1]) return 'average';
  return 'fail';
}
@param {number|null|undefined} value @param {[number, number]} cutoffs