Does there exist a function $f$, holomorphic on the whole complex plane $\mathbb{C}$, such that $f\left(\mathbb{Z}\right)=\{0,1,2,3\}$ and
$\forall z\in\mathbb{C}\ (f(z)\in\{0,1,2,3\}\Rightarrow z\in\mathbb{Z})$?
If yes, is it possible to have an explicit construction?
Note that, for example, $h(z)=\frac{1}{6} \left(9-8 \cos \left(\frac{\pi z}{3}\right)-\cos (\pi z)\right)$ is not a valid solution, since, in particular, certain roots of the equation $h(z)=0$ are not integers, but complex numbers.
Also note that this question is answered in positive regarding the function $g$ such that $g\left(\mathbb{Z}\right)=\{0,1,2\}$ and $\forall z\in\mathbb{C}\ (g(z)\in\{0,1,2\}\Rightarrow z\in\mathbb{Z})$. In this case, an example of such function is $g(z)=1-\cos \left(\frac{\pi z}{2}\right)$.