code: def test_PlotItem_multi_data_plot(xvalues, yvalues):
      item = pg.PlotItem()
      if is_none_or_scalar(xvalues) and is_none_or_scalar(yvalues):
          with pytest.raises(ValueError):
              item.multiDataPlot(x=xvalues, y=yvalues)
              return
      else:
          curves = item.multiDataPlot(
              x=xvalues, y=yvalues, constKwargs={"pen": "r"}
          )
          check_idx = None
          if xvalues is None:
              check_idx = 0
          elif yvalues is None:
              check_idx = 1
          if check_idx is not None:
              for curve in curves:
                  data = curve.getData()
                  opposite_idx = 1 - check_idx
                  assert np.array_equal(
                      data[check_idx],
                      np.arange(len(data[opposite_idx])),
                  )
                  assert curve.opts["pen"] == "r"
  
file_path: pyqtgraph/tests/graphicsItems/PlotItem/test_PlotItem.py
imports: import numpy
  import pytest
  import pyqtgraph
label_desc: Use image node_id 5 for calling a global function with example usage: test_PlotItem_multi_data_plot(xvalues, yvalues) without return types