parameters: (self, matrix)
return_statement: return all(i == 0 or j == 0 or matrix[i-1][j-1] == val
                     for i, row in enumerate(matrix)
                     for j, val in enumerate(row))
docstring: :type matrix: List[List[int]]
          :rtype: bool
docstring_summary: :type matrix: List[List[int]]
          :rtype: bool
docstring_tokens: : type matrix : List [ List [ int ]] : rtype : bool
function: def isToeplitzMatrix(self, matrix):
          """
          :type matrix: List[List[int]]
          :rtype: bool
          """
          return all(i == 0 or j == 0 or matrix[i-1][j-1] == val
                     for i, row in enumerate(matrix)
                     for j, val in enumerate(row))
function_tokens: def isToeplitzMatrix ( self , matrix ) : return all ( i == 0 or j == 0 or matrix [ i - 1 ] [ j - 1 ] == val for i , row in enumerate ( matrix ) for j , val in enumerate ( row ) )