def clamp(
        min_value,
        value,
        max_value):
    return max(min_value, min(value, max_value))
Return *value* in case *value* is in the range between *min_value* -
dataset/ETHPy150Open Esri/solutions-geoprocessing-toolbox/suitability/toolboxes/scripts/MultidimensionSupplementalTools/MultidimensionSupplementalTools/Scripts/mds/math.py/clamp