Answer
$y=2\sin{\left(2x+4\right)}$.
Work Step by Step
The general form for the sinusoidal function is: $y=A\sin{(\omega x-\phi)}+B$ where $A$ is the amplitude, $B$ is the vertical shift, we need $\omega$ can be computed from the period by the formula $\omega=\frac{2\pi}{T}.$
The phase shift is $\frac{\phi}{\omega}$, hence $\phi=\omega\cdot\text{phase shift}.$
Hence here: $A=2$,
$B=0$,
$\omega=\frac{2\pi}{T}=\frac{2\pi}{\pi}=2$
$\phi=\omega\cdot\text{phase shift}=2\cdot(-2)=-4$.
Hence our function is: $y=2\sin{\left(2x+4\right)}$.