code: def glyphs_to_quadratic(
      glyphs,
      max_err=None,
      reverse_direction=False,
      stats=None,
      all_quadratic=True,
  ):
      """Convert the curves of a set of compatible of glyphs to quadratic.
  
      All curves will be converted to quadratic at once, ensuring interpolation
      compatibility. If this is not required, calling glyphs_to_quadratic with one
      glyph at a time may yield slightly more optimized results.
  
      Return True if glyphs were modified, else return False.
  
      Raises IncompatibleGlyphsError if glyphs have non-interpolatable outlines.
      """
      if stats is None:
          stats = {}
  
      if not max_err:
          # assume 1000 is the default UPEM
          max_err = DEFAULT_MAX_ERR * 1000
  
      if isinstance(max_err, (list, tuple)):
          max_errors = max_err
      else:
          max_errors = [max_err] * len(glyphs)
      assert len(max_errors) == len(glyphs)
  
      return _glyphs_to_quadratic(
          glyphs, max_errors, reverse_direction, stats, all_quadratic
      )
  
imports: import logging
  from fontTools.pens.basePen import AbstractPen
  from fontTools.pens.pointPen import PointToSegmentPen
  from fontTools.pens.reverseContourPen import ReverseContourPen
  from .None import curves_to_quadratic
  from .errors import UnequalZipLengthsError, IncompatibleSegmentNumberError, IncompatibleSegmentTypesError, IncompatibleGlyphsError, IncompatibleFontsError
label_desc: Use image node_id 6 for calling a global function with example usage: glyphs_to_quadratic(glyphs, max_err, reverse_direction, stats, all_quadratic) and returns: _glyphs_to_quadratic