code: def closure_glyphs(self, s):
      cff = self.cff
      assert len(cff) == 1
      font = cff[cff.keys()[0]]
      glyphSet = font.CharStrings
  
      decompose = s.glyphs
      while decompose:
          components = set()
          for g in decompose:
              if g not in glyphSet:
                  continue
              gl = glyphSet[g]
  
              subrs = getattr(gl.private, "Subrs", [])
              decompiler = _ClosureGlyphsT2Decompiler(
                  components, subrs, gl.globalSubrs
              )
              decompiler.execute(gl)
          components -= s.glyphs
          s.glyphs.update(components)
          decompose = components
  
imports: from fontTools.misc import psCharStrings
  from fontTools import ttLib
  from fontTools.pens.basePen import NullPen
  from fontTools.misc.roundTools import otRound
  from fontTools.misc.loggingTools import deprecateFunction
  from fontTools.subset.util import _add_method, _uniq_sort
label_desc: Use image node_id 1 for calling a global function with example usage: closure_glyphs(s) without return types