code: def prt_goids(self, prt):
          
          fmt = self.gosubdag.prt_attr['fmta']
          nts = sorted(self.gosubdag.go2nt.values(), key=lambda nt: [nt.NS, nt.depth, nt.alt])
          _get_color = self.pydotnodego.go2color.get
          for ntgo in nts:
              gostr = fmt.format(**ntgo._asdict())
              col = _get_color(ntgo.GO, "")
              prt.write("{COLOR:7} {GO}\n".format(COLOR=col, GO=gostr))
docs: Print all GO IDs in the plot, plus their color.