code: def addPoint(self, point):
      if self.reachMaxPoints() and self.closeEnough(
          self.points[0], point
      ):
          self.close()
      else:
          self.points.append(point)
  
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 6 for calling the Shape obj's underlying member method code with example usage: obj.addPoint(point) without return types