<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def scopes(self, scopes):
 """Set scopes. :param scopes: The list of scopes. """

        validate_scopes(scopes)
        self._scopes = " ".join(set(scopes)) if scopes else ""