code: def spanToSliderValue(self, v):
      return int(np.argmin(np.abs(self.span - v)))
  
file_path: pyqtgraph/pyqtgraph/parametertree/parameterTypes/slider.py
imports: import numpy
  from ...Qt import QtCore, QtWidgets
  from ..Parameter import Parameter
  from .basetypes import Emitter, WidgetParameterItem
label_desc: Use image node_id 5 for calling the SliderParameterItem obj's underlying member method code with example usage: obj.spanToSliderValue(v) and returns: int