code: def remove(self):
      for grip in self.m_items:
          self.scene().removeItem(grip)
      for line in self.m_lines:
          self.scene().removeItem(line)
      while len(self.m_items) != 0:
          self.m_items.pop()
      while len(self.m_lines) != 0:
          self.m_lines.pop()
      self.scene().polygon_items.remove(self)
      self.scene().removeItem(self)
      if self.bbox:
          self.bbox.remove_from_scene()
          del self.bbox
      del self
  
imports: from qtpy import QtWidgets, QtGui, QtCore
  from .None import GripItem, LineItem, BBoxAnnotation
label_desc: Use image node_id 7 for calling the PolygonAnnotation obj's underlying member method code with example usage: obj.remove() without return types