The explanations for the given conditions of a function \(f\) as shown below:
\(\mathop {\lim }\limits_{x \to - {1^ - }} f\left( x \right) = 0\). It follows that if \(x\)the approach \( - 1\) from the left side is equal to 0, which leads to the point \(\left( { - 1,0} \right)\).
\(\mathop {\lim }\limits_{x \to - {1^ + }} f\left( x \right) = 1\). It follows that if \(x\)the approach \( - 1\) from the right side is equal to 1, which leads to the point \(\left( { - 1,1} \right)\).
\(\mathop {\lim }\limits_{x \to 2} f\left( x \right) = 3\). It follows that if \(x\) approach 2 from either the left or right side is equal to 3, which leads to the point \(\left( {2,3} \right)\).
Also, \(f\left( { - 1} \right) = 2\,\,{\mathop{\rm and}\nolimits} \,\,f\left( 2 \right) = 1\). This leads to the points \(\left( { - 1,2} \right)\) and \(\left( {2,1} \right)\)is denoted in a thick dot.
Sketch the graph of an example of a function \(f\) that satisfies the above conditions as shown below:

Thus, the graph of the function \(f\)is obtained.