code: def parse(self):
          
          result = nodes.Template(self.subparse(), lineno=1)
          result.set_environment(self.environment)
          return result
docs: Parse the whole template into a `Template` node.