use isspmatrix_coo to check of coo_matrix.