code: def test_ImageView():
      def mkobjs():
          iv = pg.ImageView()
          data = np.zeros((10, 10, 5))
          iv.setImage(data)
  
          return mkrefs(
              iv, iv.imageItem, iv.view, iv.ui.histogram, data
          )
  
      for _ in range(5):
          assert_alldead(mkobjs())
  
file_path: pyqtgraph/tests/test_ref_cycles.py
imports: import warnings
  import weakref
  import numpy
  import pyqtgraph
label_desc: Use image node_id 5 for calling a global function with example usage: test_ImageView() and returns: mkrefs