code: def update():
      global phase
      if phase % (8 * np.pi) > 4 * np.pi:
          m1["angle"] = 315 + 1.5 * np.sin(phase)
          m1a["angle"] = 315 + 1.5 * np.sin(phase)
      else:
          m2["angle"] = 135 + 1.5 * np.sin(phase)
          m2a["angle"] = 135 + 1.5 * np.sin(phase)
      phase += 0.2
  
imports: import numpy
  from optics import Mirror, Ray, Tracer, Lens
  import pyqtgraph
  from pyqtgraph import Point
  from pyqtgraph.Qt import QtCore
label_desc: Use image node_id 1 for calling a global function with example usage: update() without return types