code: def _endPath(self):
      p0 = self._getCurrentPoint()
      if p0 != self.__startPoint:
          raise OpenContourError(
              "Glyph statistics not defined on open contours."
          )
  
file_path: catboost/contrib/python/fonttools/fontTools/pens/momentsPen.py
imports: from fontTools.pens.basePen import BasePen, OpenContourError
label_desc: Use image node_id 4 for calling the MomentsPen obj's underlying member method code with example usage: obj._endPath() without return types