class_docstr: Some of the sparsetools routines use dense 2D matrices whose
  total size is not bounded by the nnz of the sparse matrix. These
  routines used to suffer from int32 wraparounds; here, we try to
  check that the wraparounds don't occur any more.
class_docstr_tok: ["Some","of","the","sparsetools","routines","use","dense","2D","matrices","whose","total","size","is","not","bounded","by","the","nnz","of","the","sparse","matrix",".","These","routines","used","to","suffer","from","int32","wraparounds",";","here",",","we","try","to","check","that","the","wraparounds","do","n't","occur","any","more","."]
code: def test_bsr_n_block(self, op):
      # Check: huge bsr_matrix (n-block)
      #
      # The point here is that while indices within a block don't
      # overflow, accumulators across many block may.
  
      def get_matrix():
          n = self.n
          data = np.ones((n, n, 1), dtype=np.int8)
          indptr = np.array([0, n], dtype=np.int32)
          indices = np.arange(n, dtype=np.int32)
          m = bsr_matrix(
              (data, indices, indptr), blocksize=(n, 1), copy=False
          )
          del data, indptr, indices
          return m
  
      gc.collect()
      try:
          getattr(self, "_check_bsr_" + op)(get_matrix)
      finally:
          gc.collect()
  
imports: from __future__ import division, print_function, absolute_import
  import sys
  import os
  import gc
  import threading
  import numpy
  from numpy.testing import assert_equal, assert_, assert_allclose
  from scipy.sparse import _sparsetools, coo_matrix, csr_matrix, csc_matrix, bsr_matrix, dia_matrix
  from scipy.sparse.sputils import supported_dtypes, matrix
  from scipy._lib._testutils import check_free_memory
  import pytest
  from pytest import raises
label_desc: Use image node_id 7 for calling the TestInt32Overflow obj's underlying member method code with example usage: obj.test_bsr_n_block(op) and returns: m