<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse_from_array(arr):
 """ Parse 2d array into synonym set Every array inside arr is considered a set of synonyms """

    syn_set = SynonymSet()

    for synonyms in arr:
        _set = set()

        for synonym in synonyms:
            _set.add(synonym)

        syn_set.add_set(_set)

    return syn_set