code: def updatePosition(self):
      if self.parentWidget() and self.mCenterOnParent:
          self.move(
              self.parentWidget().width() / 2 - self.width() / 2,
              self.parentWidget().height() / 2 - self.height() / 2,
          )
  
imports: from math import ceil
  from PyQt5.QtCore import *
  from PyQt5.QtGui import *
  from PyQt5.QtWidgets import *
label_desc: Use image node_id 6 for calling the Spinner obj's underlying member method code with example usage: obj.updatePosition() without return types