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 addComponent(self, glyphName, transform):
      if self.contour is not None:
          raise PenError(
              "Components must be added before or after contours"
          )
      self.pen.addComponent(glyphName, transform)
  
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 9 for calling the SegmentToPointPen obj's underlying member method code with example usage: obj.addComponent(glyphName, transform) without return types