code: def _wr_txt_nts(self, fout_txt, desc2nts, objgowr, verbose):
          
          with open(fout_txt, 'w') as prt:
              self._prt_ver_n_key(prt, verbose)
              prt.write('\n\n')
              prt.write('# ----------------------------------------------------------------\n')
              prt.write('# - Sections and GO IDs\n')
              prt.write('# ----------------------------------------------------------------\n')
              prtfmt = self._get_prtfmt(objgowr, verbose)
              summary_dct = objgowr.prt_txt_desc2nts(prt, desc2nts, prtfmt)
              if summary_dct:
                  print("  {N:>5} GO IDs WROTE: {FOUT} ({S} sections)".format(
                      N=desc2nts['num_items'], FOUT=fout_txt, S=desc2nts['num_sections']))
              else:
                  print("  WROTE: {TXT}".format(TXT=fout_txt))
docs: Write grouped and sorted GO IDs to GOs.