<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def declared_symbols(self):
 """ Return all local symbols here, and also of the parents """


        return self.local_declared_symbols | (
            self.parent.declared_symbols if self.parent else set())