code: def declared_symbols(self):
          
  
          return self.local_declared_symbols | (
              self.parent.declared_symbols if self.parent else set())
docs: Return all local symbols here, and also of the parents