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 _split_super_bezier_segments(self, points):
      sub_segments = []
      # n is the number of control points
      n = len(points) - 1
      if n == 2:
          # a simple bezier curve segment
          sub_segments.append(points)
      elif n > 2:
          # a "super" bezier; decompose it
          on_curve, smooth, name, kwargs = points[-1]
          num_sub_segments = n - 1
          for i, sub_points in enumerate(
              decomposeSuperBezierSegment(
                  [pt for pt, _, _, _ in points]
              )
          ):
              new_segment = []
              for point in sub_points[:-1]:
                  new_segment.append((point, False, None, {}))
              if i == (num_sub_segments - 1):
                  # the last on-curve keeps its original attributes
                  new_segment.append((on_curve, smooth, name, kwargs))
              else:
                  # on-curves of sub-segments are always "smooth"
                  new_segment.append((sub_points[-1], True, None, {}))
              sub_segments.append(new_segment)
      else:
          raise AssertionError(
              "expected 2 control points, found: %d" % n
          )
      return sub_segments
  
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 3 for calling the Cu2QuPointPen obj's underlying member method code with example usage: obj._split_super_bezier_segments(points) and returns: sub_segments