code: def test_bound_formats():
      for datatype in (bool, np.uint8, np.int16, float):
          truths = np.random.randint(0, 2, size=(100,)).astype(datatype)
          pdi_scatter = pg.PlotDataItem(truths, symbol="o", pen=None)
          pdi_line = pg.PlotDataItem(truths)
          bounds = pdi_scatter.dataBounds(1)
          assert isinstance(
              bounds[0], float
          ), "bound 0 is not float for scatter plot of " + str(datatype)
          assert isinstance(
              bounds[0], float
          ), "bound 1 is not float for scatter plot of " + str(datatype)
          bounds = pdi_line.dataBounds(1)
          assert isinstance(
              bounds[0], float
          ), "bound 0 is not float for line plot of " + str(datatype)
          assert isinstance(
              bounds[0], float
          ), "bound 1 is not float for line plot of " + str(datatype)
  
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 2 for calling a global function with example usage: test_bound_formats() without return types