code: def dumpToGLIF(self, glyphFormatVersion=2):
          
          glyphFormatVersion = normalizers.normalizeGlyphFormatVersion(
              glyphFormatVersion)
          return self._dumpToGLIF(glyphFormatVersion)
docs: This will return the glyph's contents as a string in
          `GLIF format <http://unifiedfontobject.org/versions/ufo3/glyphs/glif/>`_.
  
              >>> xml = glyph.writeGlyphToString()
  
          ``glyphFormatVersion`` must be a :ref:`type-int` that defines
          the preferred GLIF format version.