Is the function given below, a counterexample to 'Suppose $f$ is a continuous bijection of a (not necessarily compact) metric space $X$ onto metric space $Y$, then inverse $f^{-1}$ continuous':
$$
g(x)=\left\{
\begin{array}{c}
\frac1y, \,\,\,1\le y<\infty \\
0,\,\,\,y=0
\end{array}
\right.
$$