def METHOD_NAME(content: Union[OCRResult, str]) -> list[Prediction]:
    nutrients: JSONType = {}
    for regex_code, ocr_regex in NUTRIENT_VALUES_REGEX.items():
        text = get_text(content, ocr_regex)
        if not text:
            continue
        for match in ocr_regex.regex.finditer(text):
            value = match.group(2).replace(",", ".")
            unit = match.group(3)
            nutrients.setdefault(regex_code, [])
            nutrients[regex_code].append(
                {
                    "raw": match.group(0),
                    "nutrient": regex_code,
                    "value": value,
                    "unit": unit,
                }
            )
    if not nutrients:
        return []
    return [
        Prediction(
            type=PredictionType.nutrient,
            data={"nutrients": nutrients},
            predictor_version=PREDICTOR_VERSION,
            predictor="regex",
        )
    ]