def METHOD_NAME(cls, value, allowed_values):
    try:
        numeric = Decimal(value)
    except (ValueError, DecimalException):
        return False
    if allowed_values == "":
        return True
    allowed_values = allowed_values.split(',')
    for allowed_value in allowed_values:
        allowed_value = allowed_value.strip()
        try:
            if Decimal(allowed_value) == Decimal(value):
                return True
        except (ValueError, DecimalException):
            if cls.test_number_range(value, allowed_value):
                return True
    return False