For a complex number $z,\displaystyle{} \lim_{z \rightarrow i} \frac{z^{2}+1}{z^{3}+2z-i (z^{2}+2)}$ is

1. $-2i$
2. $-i$
3. $i$
4. $2i$