nodes: 0, module; 1, function_definition; 2, function_name:get_nts_flat; 3, parameters; 4, block; 5, identifier:self; 6, default_parameter; 7, default_parameter; 8, expression_statement; 9, comment:# Either there are no sections OR we are not using them; 10, if_statement; 11, if_statement; 12, return_statement; 13, identifier:hdrgo_prt; 14, True; 15, identifier:use_sections; 16, True; 17, comment:"""Return a flat list of sorted nts."""; 18, boolean_operator; 19, block; 20, not_operator; 21, block; 22, None; 23, comparison_operator:self.sectobj is None; 24, not_operator; 25, return_statement; 26, identifier:use_sections; 27, return_statement; 28, attribute; 29, None; 30, identifier:use_sections; 31, call; 32, call; 33, identifier:self; 34, identifier:sectobj; 35, attribute; 36, argument_list; 37, attribute; 38, argument_list; 39, attribute; 40, identifier:get_nts_sorted; 41, identifier:hdrgo_prt; 42, keyword_argument; 43, keyword_argument; 44, attribute; 45, identifier:get_sorted_nts_omit_section; 46, identifier:hdrgo_prt; 47, keyword_argument; 48, identifier:self; 49, identifier:sortgos; 50, identifier:hdrgos; 51, call; 52, identifier:hdrgo_sort; 53, True; 54, identifier:self; 55, identifier:sectobj; 56, identifier:hdrgo_sort; 57, True; 58, attribute; 59, argument_list; 60, attribute; 61, identifier:get_hdrgos; 62, identifier:self; 63, identifier:grprobj
code: def get_nts_flat(self, hdrgo_prt=True, use_sections=True):
          """Return a flat list of sorted nts."""
          # Either there are no sections OR we are not using them
          if self.sectobj is None or not use_sections:
              return self.sortgos.get_nts_sorted(
                  hdrgo_prt,
                  hdrgos=self.grprobj.get_hdrgos(),
                  hdrgo_sort=True)
          if not use_sections:
              return self.sectobj.get_sorted_nts_omit_section(hdrgo_prt, hdrgo_sort=True)
          return None