class_docstr: A filter pen to convert quadratic bezier splines to cubic curves
  using the FontTools SegmentPen protocol.
  
  Args:
  
      other_pen: another SegmentPen 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: flip the contours' direction but keep starting point.
      stats: a dictionary counting the point numbers of cubic segments.
code: def __init__(
      self,
      other_pen,
      max_err,
      all_cubic=False,
      reverse_direction=False,
      stats=None,
  ):
      if reverse_direction:
          other_pen = ReverseContourPen(other_pen)
      super().__init__(other_pen)
      self.all_cubic = all_cubic
      self.max_err = max_err
      self.stats = stats
  
file_path: catboost/contrib/python/fonttools/fontTools/pens/qu2cuPen.py
imports: from fontTools.qu2cu import quadratic_to_curves
  from fontTools.pens.filterPen import ContourFilterPen
  from fontTools.pens.reverseContourPen import ReverseContourPen
  import math
label_desc: Use image node_id 1 to create a new Qu2CuPen object from inherited base classes: ContourFilterPen with example: obj = Qu2CuPen(other_pen, max_err, all_cubic, reverse_direction, stats)