<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def prt_ntgos(self, prt, ntgos):
 """Print the Grouper namedtuples."""

        for ntgo in ntgos:
            key2val = ntgo._asdict()
            prt.write("{GO_LINE}\n".format(GO_LINE=self.prtfmt.format(**key2val)))