code: def ttfGlyphFromSkPath(path: pathops.Path) -> _g_l_y_f.Glyph:
      # Skia paths have no 'components', no need for glyphSet
      ttPen = TTGlyphPen(glyphSet=None)
      path.draw(ttPen)
      glyph = ttPen.glyph()
      assert not glyph.isComposite()
      # compute glyph.xMin (glyfTable parameter unused for non composites)
      glyph.recalcBounds(glyfTable=None)
      return glyph
  
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 4 for calling a global function with example usage: ttfGlyphFromSkPath(path) and returns: glyph