code: def check_static_vars(self, node):
          
          if self.static_vars == "" and hasattr(self, "template"):
              self.static_vars = {
                  'upy_context': {
                      'template_name': u"{}/{}".format(self.template.app_name, self.template.file_name)
                  }
              }
          elif hasattr(self, "template"):
              self.static_vars = literal_eval(self.static_vars)
              self.static_vars['upy_context']['template_name'] = u"{}/{}".format(
                  self.template.app_name, self.template.file_name
              )
          self.static_vars['upy_context']['NODE'] = node
          self.static_vars['upy_context']['PAGE'] = self
docs: This function check if a Page has static vars