def METHOD_NAME(cls, value: Dict[str, Any]):
    """Parse thresholds in params and convert them to :class:`Threshold`'s"""
    # Some calculators expect `thresholds` parameter as dict
    thresholds = value.get('thresholds', {})
    for key, threshold in thresholds.items():
        thresholds[key] = Threshold.parse_object(threshold)
    # Multivariate calculator expects a single `threshold`
    threshold = value.get('threshold')
    if threshold is not None:
        value['threshold'] = Threshold.parse_object(threshold)
    return value