code: def mouseClickEvent(self, ev):
      if ev.button() == QtCore.Qt.MouseButton.RightButton:
          self.autoRange()
  
file_path: pyqtgraph/pyqtgraph/examples/customPlot.py
imports: import numpy
  import pyqtgraph
  from pyqtgraph.Qt import QtCore
label_desc: Use image node_id 2 for calling the CustomViewBox obj's underlying member method code with example usage: obj.mouseClickEvent(ev) without return types