code: def update3():
      global p5, data5, ptr5, curves
      now = perf_counter()
      for c in curves:
          c.setPos(-(now - startTime), 0)
  
      i = ptr5 % chunkSize
      if i == 0:
          curve = p5.plot()
          curves.append(curve)
          last = data5[-1]
          data5 = np.empty((chunkSize + 1, 2))
          data5[0] = last
          while len(curves) > maxChunks:
              c = curves.pop(0)
              p5.removeItem(c)
      else:
          curve = curves[-1]
      data5[i + 1, 0] = now - startTime
      data5[i + 1, 1] = np.random.normal()
      curve.setData(x=data5[: i + 2, 0], y=data5[: i + 2, 1])
      ptr5 += 1
  
imports: from time import perf_counter
  import numpy
  import pyqtgraph
label_desc: Use image node_id 3 for calling a global function with example usage: update3() without return types