code: def update():
      region.setZValue(10)
      minX, maxX = region.getRegion()
      p1.setXRange(minX, maxX, padding=0)
  
imports: import numpy
  import pyqtgraph
label_desc: Use image node_id 1 for calling a global function with example usage: update() without return types