code: def _simplify(
      path: pathops.Path, debugGlyphName: str
  ) -> pathops.Path:
      # skia-pathops has a bug where it sometimes fails to simplify paths when there
      # are float coordinates and control points are very close to one another.
      # Rounding coordinates to integers works around the bug.
      # Since we are going to round glyf coordinates later on anyway, here it is
      # ok(-ish) to also round before simplify. Better than failing the whole process
      # for the entire font.
      # https://bugs.chromium.org/p/skia/issues/detail?id=11958
      # https://github.com/google/fonts/issues/3365
      # TODO(anthrotype): remove once this Skia bug is fixed
      try:
          return pathops.simplify(path, clockwise=path.clockwise)
      except pathops.PathOpsError:
          pass
  
      path = _round_path(path)
      try:
          path = pathops.simplify(path, clockwise=path.clockwise)
          log.debug(
              "skia-pathops failed to simplify '%s' with float coordinates, "
              "but succeded using rounded integer coordinates",
              debugGlyphName,
          )
          return path
      except pathops.PathOpsError as e:
          if log.isEnabledFor(logging.DEBUG):
              path.dump()
          raise RemoveOverlapsError(
              f"Failed to remove overlaps from glyph {debugGlyphName!r}"
          ) from e
  
      raise AssertionError("Unreachable")
  
file_path: catboost/contrib/python/fonttools/fontTools/ttLib/removeOverlaps.py
imports: import itertools
  import logging
  from typing import Callable, Iterable, Optional, Mapping
  from fontTools.misc.roundTools import otRound
  from fontTools.ttLib import ttFont
  from fontTools.ttLib.tables import _g_l_y_f
  from fontTools.ttLib.tables import _h_m_t_x
  from fontTools.pens.ttGlyphPen import TTGlyphPen
  import pathops
label_desc: Use image node_id 6 for calling a global function with example usage: _simplify(path, debugGlyphName) and returns: pathops, path