code: def sanity_check_subsections(self):
          
          # Loop over the sections in the ini file
          for section in self.sections():
              # [pegasus_profile] specially is allowed to be overriden by
              # sub-sections
              if section == 'pegasus_profile':
                  continue
  
              # Loop over the sections again
              for section2 in self.sections():
                  # Check if any are subsections of section
                  if section2.startswith(section + '-'):
                      # Check for duplicate options whenever this exists
                      self.check_duplicate_options(section, section2,
                                                   raise_error=True)
docs: This function goes through the ConfigParset and checks that any options
          given in the [SECTION_NAME] section are not also given in any
          [SECTION_NAME-SUBSECTION] sections.