code: def setup(self, nelems, connect):
      self.xdata = np.arange(nelems, dtype=np.float64)
      self.ydata = rng.standard_normal(nelems, dtype=np.float64)
      if connect == "array":
          self.connect_array = np.ones(nelems, dtype=bool)
      if self.have_nonfinite:
          self.ydata[::5000] = np.nan
  
file_path: pyqtgraph/benchmarks/arrayToQPath.py
imports: import numpy
  import pyqtgraph
label_desc: Use image node_id 1 for calling the _TimeSuite obj's underlying member method code with example usage: obj.setup(nelems, connect) without return types