def _validate_logical_condition_counts(fn, conditions):
    # c_and / c_or have these limits applied, this keeps it DRY
    if len(conditions) < 2:
        raise IntrinsicFuncInputError(fn._errmsg_min)
    elif len(conditions) > 10:
        raise IntrinsicFuncInputError(fn._errmsg_max)
dataset/ETHPy150Open seandst/cfn-pyplates/cfn_pyplates/functions.py/_validate_logical_condition_counts/original