Let $a = \operatorname { Im } \left( \frac { 1 + z ^ { 2 } } { 2 i z } \right)$, where $z$ is any non-zero complex number. The set $\mathrm { A } = \{ a : | z | = 1$ and $z \neq \pm 1 \}$ is equal to:\\
(1) $( - 1,1 )$\\
(2) $[ - 1,1 ]$\\
(3) $[ 0,1 )$\\
(4) $( - 1,0 ]$