code: def test_init_with_mode_and_imageitem():
      data = np.random.randint(256, size=(256, 256, 3))
      imgitem = pg.ImageItem(data)
      pg.ImageView(imageItem=imgitem, levelMode="rgba")
      assert pg.image is not None
  
imports: import numpy
  import pyqtgraph
label_desc: Use image node_id 3 for calling a global function with example usage: test_init_with_mode_and_imageitem() without return types