<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_parents(self, parents):
 """Adds new parent nodes after filtering for duplicates Args: parents (list):
 list of OmniTree nodes to add as parents """


        self._parents += [p for p in parents if p not in self._parents]