def METHOD_NAME(cur_pos, next_pos, t_in, t_out):
    """
    Converts the tangents from arbitrary range to the range of 0-1
    Args:
        cur_pos  (common.Vector.Vector) : Current position in coordinate system
        next_pos (common.Vector.Vector) : Next position in coordinate system
        t_in     (dict)        : In tangent in Lottie format
        t_out    (dict)        : Out tangent in Lottie format
    Returns:
        (None)
    """
    # time_scale means converting time(on x-axis) to 0-1 range
    time_scale = next_pos[1] - cur_pos[1]
    # value_scale -> converting value(on y-axis to 0-1 range)
    value_scale = next_pos[0] - cur_pos[0]
    # If ever the value scale equals to absolute zero, randomly add or subtract
    # 1e-9 to it, in order to avoid division by zero
    # This difference in value is not caught by bare human eyes, so should not effect
    if value_scale == 0.0:
        bias = 1 if random.random() < 0.5 else -1
        bias *= 1e-9
        value_scale += bias
    # Trying the same for time_scale
    if time_scale == 0.0:
        bias = 1 if random.random() < 0.5 else -1
        bias *= 1e-9
        time_scale += bias
    time_diff = cur_pos[1] / time_scale
    value_diff = cur_pos[0] / value_scale
    t_out["x"][0] += cur_pos[1]     # The tangents were relative to cur_pos, now relative to 0
    t_out["y"][0] += cur_pos[0]
    # -ve sign because lottie and synfig use opposite "in" tangents
    t_in["x"][0] = next_pos[1] - t_in["x"][0]
    t_in["y"][0] = next_pos[0] - t_in["y"][0]
    # abs is put in order to deal with decreasing value
    t_out["x"][0] = abs(t_out["x"][0] / time_scale - time_diff)
    t_out["y"][0] = abs(t_out["y"][0] / value_scale - value_diff)
    t_in["x"][0] = abs(t_in["x"][0] / time_scale - time_diff)
    t_in["y"][0] = abs(t_in["y"][0] / value_scale - value_diff)