code: def updatePenSize(self):
      self.pen.setWidth(max(1, int(2 / self.scale + 1e-12)))
  
imports: from qtpy import QtWidgets, QtCore
  from qtpy.QtCore import Qt, QPointF
  from qtpy.QtGui import QPen, QColor
label_desc: Use image node_id 3 for calling the AnnotationScene obj's underlying member method code with example usage: obj.updatePenSize() without return types