<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def map_into_range(low, high, raw_value):
 """ Map an input function into an output value, clamping such that the magnitude of the output is at most 1.0 :param low: The value in the input range corresponding to zero. :param high: The value in the input range corresponding to 1.0 or -1.0, depending on whether this is higher or lower than the low value respectively. :param raw_value: An input value :return: Mapped output value """

    value = float(raw_value)
    if low < high:
        if value < low:
            return 0
        elif value > high:
            return 1.0
    elif low > high:
        if value > low:
            return 0
        elif value < high:
            return -1.0
    return (value - low) / abs(high - low)