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 _quadratics_to_curve(self, q):
      curves = quadratic_to_curves(
          q, self.max_err, all_cubic=self.all_cubic
      )
      if self.stats is not None:
          for curve in curves:
              n = str(len(curve) - 2)
              self.stats[n] = self.stats.get(n, 0) + 1
      for curve in curves:
          if len(curve) == 4:
              yield ("curveTo", curve[1:])
          else:
              yield ("qCurveTo", curve[1:])
  
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 2 for calling the Qu2CuPen obj's underlying member method code with example usage: obj._quadratics_to_curve(q) without return types