code: def close(self):
      self.center = QPointF(
          (self.points[0].x() + self.points[2].x()) / 2,
          (self.points[0].y() + self.points[2].y()) / 2,
      )
      self._closed = True
  
imports: import math
  import sys
  from PyQt5.QtCore import QPointF
  from PyQt5.QtGui import QColor, QPen, QPainterPath, QFont
  from libs.utils import distance
label_desc: Use image node_id 4 for calling the Shape obj's underlying member method code with example usage: obj.close() without return types