Given a square matrix, the function is_toeplitz(matrix) checks if it is a Toeplitz matrix.A Toeplitz matrix has all descending diagonals from top-left to bottom-right containing the same elements.The Python solution involves looping through each element and checking if it matches the one diagonally down-right from it.If all pairs match, the function returns True; otherwise, it returns False.