code: def update(*args):
      # Shift all data to the right
      data[:, 1:] = data[:, :-1]
  
      # Fill-in new values
      data[:, 0] = np.random.uniform(0, 1, len(data))
  
      # Update data
      for i in range(len(data)):
          lines[i].set_ydata(i + G * data[i])
  
      # Return modified artists
      return lines
  
imports: import matplotlib.pyplot
  import numpy
  import matplotlib.animation
label_desc: Use image node_id 1 for calling a global function with example usage: update() and returns: lines