The graph of a piecewise function is shown.

The graph shows a piecewise function in 3 pieces. The first piece is curved and increasing from the left through negative 3 comma negative 7 with a closed endpoint at negative 2 comma negative 2. The second piece is linear with an open endpoint at negative 2 comma negative 1 and another open endpoint at 2 comma 1. The third piece is curved with an endpoint at 2 comma 2, and it goes through the point 3 comma 7 and continues to increase to the right.

What is the range of the function?

(−∞, −2) ∪ [−1, 1] ∪ (2, ∞)
(−∞, −2] ∪ (−1, 1) ∪ [2, ∞)
(−∞, ∞)
[−∞, ∞]