code: def get_go2txt(grprobj_cur, grp_go2color, grp_go2bordercolor):
          
          goids_main = set(o.id for o in grprobj_cur.gosubdag.go2obj.values())
          hdrobj = grprobj_cur.hdrobj
          grprobj_all = Grouper("all",
                                grprobj_cur.usrgos.union(goids_main), hdrobj, grprobj_cur.gosubdag)
          # Adds section text to all GO terms in plot (misses middle GO terms)
          _secdflt = hdrobj.secdflt
          _hilight = set(grp_go2color.keys()).union(grp_go2bordercolor)
          ret_go2txt = {}
          # Keep sections text only if GO header, GO user, or not Misc.
          if hdrobj.sections:
              for goid, txt in grprobj_all.get_go2sectiontxt().items():
                  if txt == 'broad':
                      continue
                  if txt != _secdflt or goid in _hilight:
                      ret_go2txt[goid] = txt
          return ret_go2txt
docs: Adds section text in all GO terms if not Misc. Adds Misc in terms of interest.