code: def com_google_fonts_check_unique_glyphnames(ttFont):
    
    if ttFont.sfntVersion == b'\x00\x01\x00\x00' and ttFont.get(
        "post") and ttFont["post"].formatType == 3.0:
      yield SKIP, ("TrueType fonts with a format 3.0 post table contain no"
                   " glyph names.")
    else:
      import re
      glyphs = []
      duplicated_glyphIDs = []
      for _, g in enumerate(ttFont.getGlyphOrder()):
        glyphID = re.sub(r'#\w+', '', g)
        if glyphID in glyphs:
          duplicated_glyphIDs.append(glyphID)
        else:
          glyphs.append(glyphID)
  
      if len(duplicated_glyphIDs) == 0:
        yield PASS, "Font contains unique glyph names."
      else:
        yield FAIL, ("The following glyph names"
                     " occur twice: {}").format(duplicated_glyphIDs)
docs: Font contains unique glyph names?