Implement a positional encoding mechanism. **Example:** For input 10 and 512, the output should be a matrix of shape (10, 512). **Constraints:** Use NumPy for efficient computation.
Test Cases
Test Case 1
Input:
10 512Expected:
[[0.0,0.0],[0.0,0.0]]Test Case 2
Input:
5 256Expected:
[[0.0,0.0],[0.0,0.0]]+ 3 hidden test cases