The function f(x) takes numerical inputs and scales them by a factor of 2, except for inputs between -2 and 2, where the function outputs a noisy version of the input.

