code: def updateRange(self, vb, viewRange):
      origin = self.tickSize / 2.0
      length = self.length
  
      lengthIncludingPadding = length + self.tickSize + 2
  
      self._range = viewRange
  
      for pos in self.all_ticks:
          tickValueIncludingPadding = (pos - viewRange[0]) / (
              viewRange[1] - viewRange[0]
          )
          tickValue = (
              tickValueIncludingPadding * lengthIncludingPadding
              - origin
          ) / length
  
          # Convert from np.bool_ to bool for setVisible
          visible = bool(tickValue >= 0 and tickValue <= 1)
  
          tick = self.all_ticks[pos]
          tick.setVisible(visible)
  
          if visible:
              self.setTickValue(tick, tickValue)
  
file_path: pyqtgraph/pyqtgraph/examples/customPlot.py
imports: import numpy
  import pyqtgraph
  from pyqtgraph.Qt import QtCore
label_desc: Use image node_id 3 for calling the CustomTickSliderItem obj's underlying member method code with example usage: obj.updateRange(vb, viewRange) without return types