code: def _generate_random_image_data(shape, dtype=np.float32):
      rng = np.random.default_rng()
      data = rng.random(shape, dtype=dtype)
      return data
  
file_path: vispy/examples/scene/realtime_data/ex01_embedded_vispy.py
imports: import numpy
  from PyQt5 import QtWidgets
  from vispy.scene import SceneCanvas, visuals
  from vispy.app import use_app
label_desc: Use image node_id 1 for calling a global function with example usage: _generate_random_image_data(shape, dtype) and returns: data