code: def _get_index(self):
          
          contour = self.contour
          if contour is None:
              return None
          return contour.points.index(self)
docs: Get the point's index.
          This must return an ``int``.
  
          Subclasses may override this method.