code: def update(
      antialias=pg.getConfigOption("antialias"),
      connect="all",
      skipFiniteCheck=False,
  ):
      global ptr
  
      if next(iterations_counter) > args.iterations:
          # cleanly close down benchmark
          timer.stop()
          app.quit()
          return None
  
      if connect == "array":
          connect = connect_array
  
      curve.setData(
          data[ptr],
          antialias=antialias,
          connect=connect,
          skipFiniteCheck=skipFiniteCheck,
      )
      ptr = (ptr + 1) % data.shape[0]
      framecnt.update()
  
file_path: pyqtgraph/pyqtgraph/examples/PlotSpeedTest.py
imports: import argparse
  import itertools
  import numpy
  from utils import FrameCounter
  import pyqtgraph
  import pyqtgraph.functions
  import pyqtgraph.parametertree
  from pyqtgraph.Qt import QtCore, QtGui, QtWidgets
label_desc: Use image node_id 2 for calling a global function with example usage: update(antialias, connect, skipFiniteCheck) and returns: None