code: def _declare(self, var):
          
          if var.name in self._declarations:
              raise ValueError('Variable already declared')
          self._declarations[var.name] = var
          return var
docs: Declare the variable `var`