class_docstr: Adapter class that converts the (Segment)Pen protocol to the
  PointPen protocol.
class_docstr_tok: ["Adapter","class","that","converts","the","(","Segment",")","Pen","protocol","to","the","PointPen","protocol","."]
code: def curveTo(self, *pts):
      if not pts:
          raise TypeError("Must pass in at least one point")
      if self.contour is None:
          raise PenError("Contour missing required initial moveTo")
      for pt in pts[:-1]:
          self.contour.append((pt, None))
      self.contour.append((pts[-1], "curve"))
  
imports: import math
  from typing import Any, Optional, Tuple, Dict
  from fontTools.pens.basePen import AbstractPen, PenError
  from fontTools.misc.transform import DecomposedTransform
label_desc: Use image node_id 5 for calling the SegmentToPointPen obj's underlying member method code with example usage: obj.curveTo() without return types