code: def toUnicode(glyph, isZapfDingbats=False):
      """Convert glyph names to Unicode, such as ``'longs_t.oldstyle'`` --> ``u'ſt'``
  
      If ``isZapfDingbats`` is ``True``, the implementation recognizes additional
      glyph names (as required by the AGL specification).
      """
      # https://github.com/adobe-type-tools/agl-specification#2-the-mapping
      #
      # 1. Drop all the characters from the glyph name starting with
      #    the first occurrence of a period (U+002E; FULL STOP), if any.
      glyph = glyph.split(".", 1)[0]
  
      # 2. Split the remaining string into a sequence of components,
      #    using underscore (U+005F; LOW LINE) as the delimiter.
      components = glyph.split("_")
  
      # 3. Map each component to a character string according to the
      #    procedure below, and concatenate those strings; the result
      #     is the character string to which the glyph name is mapped.
      result = [
          _glyphComponentToUnicode(c, isZapfDingbats)
          for c in components
      ]
      return "".join(result)
  
file_path: catboost/contrib/python/fonttools/fontTools/agl.py
imports: from fontTools.misc.textTools import tostr
  import re
label_desc: Use image node_id 2 for calling a global function with example usage: toUnicode(glyph, isZapfDingbats) and returns: str