In this problem, you need to implement a 2D convolutional layer in Python. This function will process an input matrix using a specified convolutional kernel, padding, and stride.
input_matrix with padding rows and columns of zeros on every side.stride. Each output entry is the sum of the element-wise product of the kernel and the region it covers. The kernel is not flipped (cross-correlation, as in deep-learning libraries).