code: def to_ufo_glyph_anchors(self, glyph, anchors):
      
  
      for anchor in anchors:
          x, y = anchor.position
          anchor_dict = {"name": anchor.name, "x": x, "y": y}
          glyph.appendAnchor(anchor_dict)
docs: Add .glyphs anchors to a glyph.