class_docstr: Template for any configuration file
class_docstr_tok: ["Template","for","any","configuration","file"]
docstr: Returns the order in which to show the keys in the config.
  
  Args:
      warn_if_unset: Whether to log a warning if order is unset for multiple keys.
  
  Returns:
      A list of the same length and with same elements as `self.__dict__.keys()`.
docstr_tok: ["Returns","the","order","in","which","to","show","the","keys","in","the","config",".","Args",":","warn_if_unset",":","Whether","to","log","a","warning","if","order","is","unset","for","multiple","keys",".","Returns",":","A","list","of","the","same","length","and","with","same","elements","as","`","self.__dict__.keys","(",")","`","."]
code: def _get_order(self, warn_if_unset=True) -> List[str]:
      """
      Returns the order in which to show the keys in the config.
  
      Args:
          warn_if_unset: Whether to log a warning if order is unset for multiple keys.
  
      Returns:
          A list of the same length and with same elements as `self.__dict__.keys()`.
      """
  
      keys = self.__dict__.keys()
  
      ordered_keys = [key for key in self._order if key in keys]
      unordered_keys = list(set(keys) - set(ordered_keys))
  
      unordered_ui_keys = [
          key
          for key in unordered_keys
          if not (
              key.startswith("_") or self._get_visibility(key) == -1
          )
      ]
  
      # warn if there is more than one key without order.
      # one is not problematic since it will just always be last
      if warn_if_unset and len(unordered_ui_keys) > 1:
          logger.warning(f"No order set for keys: {unordered_ui_keys}.")
  
      return ordered_keys + unordered_keys
  
imports: import dataclasses
  import logging
  from dataclasses import dataclass, fields
  from typing import Any, Dict, List, Optional, Sequence, Set, Tuple
  from llm_studio.src import possible_values
  from llm_studio.src.nesting import Dependency, Nesting
  from llm_studio.src.order import Order
  from llm_studio.src.tooltips import tooltips
label_desc: Use image node_id 7 for calling the DefaultConfig obj's underlying member method code with example usage: obj._get_order(warn_if_unset) and returns: unknown