code: def test_bool():
      truths = np.random.randint(0, 2, size=(100,)).astype(bool)
      pdi = pg.PlotDataItem(truths)
      xdata, ydata = pdi.getData()
      assert ydata.dtype == np.uint8
  
file_path: pyqtgraph/tests/graphicsItems/test_PlotDataItem.py
imports: import warnings
  import numpy
  import pyqtgraph
  from pyqtgraph.Qt import QtGui
label_desc: Use image node_id 1 for calling a global function with example usage: test_bool() without return types