<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_go2nthdridx(self, gos_all):
 """Get GO IDs header index for each user GO ID and corresponding parent GO IDs."""

        go2nthdridx = {}
        # NtHdrIdx Namedtuple fields:
        #   * format_txt: Used to determine the format when writing Excel cells
        #   * hdr_idx: Value printed in an Excel cell
        # shortcuts
        obj = GrouperInit.NtMaker(self)
        # Create go2nthdridx
        for goid in gos_all:
            go2nthdridx[goid] = obj.get_nt(goid)
        return go2nthdridx