code: def connect_viewbox_redraw(vb, request_draw):
      # connecting these signals is enough to support zoom/pan
      # but not enough to support the various graphicsItems
      # that react to mouse events
  
      vb.sigRangeChanged.connect(request_draw)
      # zoom / pan
      vb.sigRangeChangedManually.connect(request_draw)
      # needed for "auto" button
      vb.sigStateChanged.connect(request_draw)
      # note that all cases of sig{X,Y}RangeChanged being emitted
      # are also followed by sigRangeChanged or sigStateChanged
      vb.sigTransformChanged.connect(request_draw)
  
imports: import jupyter_rfb
  import numpy
  from ..None import functions
  from ..None import graphicsItems, widgets
  from ..Qt import QtCore, QtGui
label_desc: Use image node_id 3 for calling a global function with example usage: connect_viewbox_redraw(vb, request_draw) without return types