code: def _make_section_node(self, template, tag_type, tag_key, parsed_section,
                             section_start_index, section_end_index):
          
          if tag_type == '#':
              return _SectionNode(tag_key, parsed_section, self._delimiters,
                                 template, section_start_index, section_end_index)
  
          if tag_type == '^':
              return _InvertedNode(tag_key, parsed_section)
  
          raise Exception("Invalid symbol for section tag: %s" % repr(tag_type))
docs: Create and return a section node for the parse tree.