nodes: 0, module; 1, function_definition; 2, function_name:_iter_indented_subactions; 3, parameters; 4, block; 5, identifier:self; 6, identifier:action; 7, expression_statement; 8, try_statement; 9, comment:"""
          Sort the subcommands alphabetically
          """; 10, block; 11, except_clause; 12, else_clause; 13, expression_statement; 14, identifier:AttributeError; 15, block; 16, block; 17, assignment; 18, pass_statement; 19, expression_statement; 20, if_statement; 21, expression_statement; 22, identifier:get_subactions; 23, attribute; 24, call; 25, call; 26, block; 27, else_clause; 28, call; 29, identifier:action; 30, identifier:_get_subactions; 31, attribute; 32, argument_list; 33, identifier:isinstance; 34, argument_list; 35, for_statement; 36, block; 37, attribute; 38, argument_list; 39, identifier:self; 40, identifier:_indent; 41, identifier:action; 42, attribute; 43, identifier:subaction; 44, call; 45, block; 46, for_statement; 47, identifier:self; 48, identifier:_dedent; 49, identifier:argparse; 50, identifier:_SubParsersAction; 51, identifier:sorted; 52, argument_list; 53, expression_statement; 54, identifier:subaction; 55, call; 56, block; 57, call; 58, keyword_argument; 59, yield; 60, identifier:get_subactions; 61, argument_list; 62, expression_statement; 63, identifier:get_subactions; 64, argument_list; 65, identifier:key; 66, lambda; 67, identifier:subaction; 68, yield; 69, lambda_parameters; 70, attribute; 71, identifier:subaction; 72, identifier:x; 73, identifier:x; 74, identifier:dest
code: def _iter_indented_subactions(self, action):
          """
          Sort the subcommands alphabetically
          """
          try:
              get_subactions = action._get_subactions
          except AttributeError:
              pass
          else:
              self._indent()
              if isinstance(action, argparse._SubParsersAction):
                  for subaction in sorted(
                          get_subactions(), key=lambda x: x.dest):
                      yield subaction
              else:
                  for subaction in get_subactions():
                      yield subaction
              self._dedent()