code: def to_glyphs(ufos_or_designspace, glyphs_module=classes, minimize_ufo_diffs=False):
      
      if hasattr(ufos_or_designspace, "sources"):
          builder = GlyphsBuilder(
              designspace=ufos_or_designspace,
              glyphs_module=glyphs_module,
              minimize_ufo_diffs=minimize_ufo_diffs,
          )
      else:
          builder = GlyphsBuilder(
              ufos=ufos_or_designspace,
              glyphs_module=glyphs_module,
              minimize_ufo_diffs=minimize_ufo_diffs,
          )
      return builder.font
docs: Take a list of UFOs or a single DesignspaceDocument with attached UFOs
      and converts it into a GSFont object.
  
      The GSFont object is in-memory, it's up to the user to write it to the disk
      if needed.
  
      This should be the inverse function of `to_ufos` and `to_designspace`,
      so we should have to_glyphs(to_ufos(font)) == font
      and also to_glyphs(to_designspace(font)) == font