code: def test_refcount(self):
      # make sure we do not hold references to the array due to a recursive
      # closure (gh-10620)
      gc.disable()
      a = np.arange(2)
      r1 = sys.getrefcount(a)
      np.array2string(a)
      np.array2string(a)
      r2 = sys.getrefcount(a)
      gc.collect()
      gc.enable()
      assert_(r1 == r2)
  
imports: import sys
  import gc
  from hypothesis import given
  from hypothesis.extra import numpy
  import pytest
  import numpy
  from numpy.testing import assert_, assert_equal, assert_raises, assert_warns, HAS_REFCOUNT, assert_raises_regex
  from numpy.core.arrayprint import _typelessdata
  import textwrap
label_desc: Use image node_id 17 for calling the TestArray2String obj's underlying member method code with example usage: obj.test_refcount() without return types