code: def test_ref_sbasearrayptr(self):
      sparsearray_double = csr_matrix(
          (
              np.array([1.0, 2, 3, 4, 5]),
              np.array([2, 4, 6, 8, 10]),
              np.array([0, 5]),
          ),
          shape=(1, 12),
      )
      refdata = weakref.ref(sparsearray_double.data)
      refindices = weakref.ref(sparsearray_double.indices)
      refindptr = weakref.ref(sparsearray_double.indptr)
      test.test_sbasearray_container_new(sparsearray_double)
      del sparsearray_double
      self.assertIsNone(refindptr())
      self.assertIsNotNone(refdata())
      self.assertIsNotNone(refindices())
      test.test_sbasearray_container_clear()
      self.assertIsNone(refdata())
      self.assertIsNone(refindices())
  
      array_double = np.arange(2, 14, dtype=float)
      ref = weakref.ref(array_double)
      test.test_sbasearray_container_new(array_double)
      del array_double
      self.assertIsNotNone(ref())
      test.test_sbasearray_container_clear()
      self.assertIsNone(ref())
  
imports: import gc
  import unittest
  import weakref
  import numpy
  import scipy
  from scipy.sparse import csr_matrix
  from tick.array.build.array import tick_double_sparse2d_from_file
  from tick.array.build.array import tick_double_sparse2d_to_file
  from tick.array_test.build import array_test
label_desc: Use image node_id 11 for calling the Test obj's underlying member method code with example usage: obj.test_ref_sbasearrayptr() without return types