<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_key_goids(self, goids):
 """Given GO IDs, return key GO IDs."""

        go2obj = self.go2obj
        return set(go2obj[go].id for go in goids)