<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_synsets(synset_offsets):
 """Given synset offsets in the WordNet file, parses synset object for every offset. Notes ----- Internal function. Do not call directly. Stores every parsed synset into global synset dictionary under two keys: synset's name lemma.pos.sense_no and synset's id (unique integer). Parameters synset_offsets : list of ints Lists pointer offsets from which synset objects will be parsed. Returns ------- list of Synsets Lists synset objects which synset_offsets point to. """

    global parser
    if parser is None:
        parser = Parser(_WN_FILE)
    synsets = []

    for offset in synset_offsets:
        raw_synset = parser.parse_synset(offset)
        synset = Synset(raw_synset)

        SYNSETS_DICT[_get_key_from_raw_synset(raw_synset)] = synset
        SYNSETS_DICT[synset.id] = synset

        synsets.append(synset)

    return synsets