code: def test_close_holes_simple():
      img = np.zeros((64, 64), bool)
      img[16:48, 16:48] = True
      holed = np.logical_xor(img, mahotas.erode(mahotas.erode(img)))
      assert np.all(mahotas.close_holes(holed) == img)
      holed[12, 12] = True
      img[12, 12] = True
      assert np.all(mahotas.close_holes(holed) == img)
      if hasattr(sys, "getrefcount"):
          assert sys.getrefcount(holed) == 2
  
imports: import numpy
  import mahotas
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: test_close_holes_simple() without return types