code: def makeData(
      noise=args.noise,
      nsamples=args.nsamples,
      frames=args.frames,
      fsample=args.fsample,
      frequency=args.frequency,
      amplitude=args.amplitude,
  ):
      global data, connect_array, ptr
      ttt = np.arange(frames * nsamples, dtype=np.float64) / fsample
      data = amplitude * np.sin(2 * np.pi * frequency * ttt).reshape(
          (frames, nsamples)
      )
      if noise:
          data += np.random.normal(size=data.shape)
      connect_array = np.ones(data.shape[-1], dtype=bool)
      ptr = 0
      pw.setRange(QtCore.QRectF(0, -10, nsamples, 20))
  
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 1 for calling a global function with example usage: makeData(noise, nsamples, frames, fsample, frequency, amplitude) without return types