class_docstr: A filter pen to convert cubic bezier curves to quadratic b-splines
  using the FontTools PointPen protocol.
  
  Args:
      other_point_pen: another PointPen used to draw the transformed outline.
      max_err: maximum approximation error in font units. For optimal results,
          if you know the UPEM of the font, we recommend setting this to a
          value equal, or close to UPEM / 1000.
      reverse_direction: reverse the winding direction of all contours.
      stats: a dictionary counting the point numbers of quadratic segments.
      all_quadratic: if True (default), only quadratic b-splines are generated.
          if False, quadratic curves or cubic curves are generated depending
          on which one is more economical.
code: def __init__(
      self,
      other_point_pen,
      max_err,
      reverse_direction=False,
      stats=None,
      all_quadratic=True,
  ):
      BasePointToSegmentPen.__init__(self)
      if reverse_direction:
          self.pen = ReverseContourPointPen(other_point_pen)
      else:
          self.pen = other_point_pen
      self.max_err = max_err
      self.stats = stats
      self.all_quadratic = all_quadratic
  
imports: import operator
  from fontTools.cu2qu import curve_to_quadratic, curves_to_quadratic
  from fontTools.pens.basePen import decomposeSuperBezierSegment
  from fontTools.pens.filterPen import FilterPen
  from fontTools.pens.reverseContourPen import ReverseContourPen
  from fontTools.pens.pointPen import BasePointToSegmentPen
  from fontTools.pens.pointPen import ReverseContourPointPen
label_desc: Use image node_id 1 to create a new Cu2QuPointPen object from inherited base classes: BasePointToSegmentPen with example: obj = Cu2QuPointPen(other_point_pen, max_err, reverse_direction, stats, all_quadratic)