Implement the polynomial kernel function, a popular kernel used in Support Vector Machines (SVMs) and other kernel-based machine learning algorithms. The polynomial kernel allows learning of non-linear models by implicitly mapping input features into higher-dimensional feature spaces without explicitly computing the transformation.
Given two input vectors x and y, along with parameters for degree, gamma (scaling factor), and coef0 (independent term), compute the polynomial kernel value between the two vectors.
The function should take the following parameters:
Return the kernel value as a float.