docstr: ...Test that varray is still alive after deletion in Python
          
docstr_tok: ["...","Test","that","varray","is","still","alive","after","deletion","in","Python"]
code: def test_varray_smart_pointer_deletion1(self):
      """...Test that varray is still alive after deletion in Python"""
      vcc = test.VarrayContainer()
      vcc.initVarray()
      # Now mix with some Python
      a = vcc.varrayPtr
      # This does not increment C++ reference counter
      self.assertEqual(vcc.nRef(), 1)
      # Get a weak ref of the array
      r = weakref.ref(a)
      del a
      np.testing.assert_array_almost_equal(r(), vcc.varrayPtr)
      del vcc
      self.assertIsNone(r())
  
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 2 for calling the Test obj's underlying member method code with example usage: obj.test_varray_smart_pointer_deletion1() without return types