What is the general equation of a sine function with an amplitude of 2, a period of pi and a horizontal shift of pi units?