code: def updateRegion(window, viewRange):
      rgn = viewRange[0]
      region.setRegion(rgn)
  
imports: import numpy
  import pyqtgraph
label_desc: Use image node_id 2 for calling a global function with example usage: updateRegion(window, viewRange) without return types