code: def update2():
      global data3, ptr3
      data3[ptr3] = np.random.normal()
      ptr3 += 1
      if ptr3 >= data3.shape[0]:
          tmp = data3
          data3 = np.empty(data3.shape[0] * 2)
          data3[: tmp.shape[0]] = tmp
      curve3.setData(data3[:ptr3])
      curve3.setPos(-ptr3, 0)
      curve4.setData(data3[:ptr3])
  
imports: from time import perf_counter
  import numpy
  import pyqtgraph
label_desc: Use image node_id 2 for calling a global function with example usage: update2() without return types