code: def next_plot(
      xtype="random", ytype="random", symbol="o", symbolBrush="#f00"
  ):
      constKwargs = locals()
      x = y = None
      if xtype == "random":
          xtype = random.choice(list(values))
      if ytype == "random":
          ytype = random.choice(list(values))
      x = values[xtype]
      y = values[ytype]
      textbox.setValue(f"x={xtype}\ny={ytype}")
      pltItem.clear()
      try:
          pltItem.multiDataPlot(
              x=x,
              y=y,
              pen=cmap.getLookupTable(nPts=6),
              constKwargs=constKwargs,
          )
      except Exception as e:
          QtWidgets.QMessageBox.critical(
              widget, "Error", traceback.format_exc()
          )
  
file_path: pyqtgraph/pyqtgraph/examples/MultiDataPlot.py
imports: import traceback
  import numpy
  import pyqtgraph
  from pyqtgraph.graphicsItems.ScatterPlotItem import name_list
  from pyqtgraph.Qt import QtWidgets, QtCore
  from pyqtgraph.parametertree import interact, ParameterTree, Parameter
  import random
label_desc: Use image node_id 3 for calling a global function with example usage: next_plot(xtype, ytype, symbol, symbolBrush) without return types