code: def _updatePenWidth(self, pen):
      no_pen = pen is None or pen.style() == QtCore.Qt.PenStyle.NoPen
      if no_pen:
          return
  
      idx = pen.isCosmetic()
      self._penWidth[idx] = max(self._penWidth[idx], pen.widthF())
  
imports: import numpy
  from ..None import functions
  from ..None import getConfigOption
  from ..None import Qt
  from ..Qt import QtCore, QtGui
  from .GraphicsObject import GraphicsObject
label_desc: Use image node_id 3 for calling the BarGraphItem obj's underlying member method code with example usage: obj._updatePenWidth(pen) without return types