<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_related_synsets(self,relation):
 """Retrieves all the synsets which are related by given relation. Parameters relation : str Name of the relation via which the sought synsets are linked. Returns ------- list of Synsets Synsets which are related via `relation`. """

        results = []

        for relation_candidate in self._raw_synset.internalLinks:
            if relation_candidate.name == relation:
                linked_synset = synset(_get_key_from_raw_synset(relation_candidate.target_concept))
                relation_candidate.target_concept = linked_synset._raw_synset
                results.append(linked_synset)
        return results