code: def parse_cfg_dataclass(cfg) -> List[Dict]:
      """Returns all single config settings for a given configuration
  
      Args:
          cfg: configuration
      """
  
      items = []
  
      parent_element = get_parent_element(cfg)
      if parent_element:
          items.append(parent_element)
  
      cfg_dict = cfg.__dict__
      type_annotations = cfg.get_annotations()
      cfg_dict = {key: cfg_dict[key] for key in cfg._get_order()}
  
      for k, v in cfg_dict.items():
          if k.startswith("_"):
              continue
  
          if any([x in k for x in ["api"]]):
              continue
  
          type_annotation = type_annotations[k]
  
          if type_annotation in KNOWN_TYPE_ANNOTATIONS:
              if type_annotation == float:
                  v = float(v)
              t = [{k: v}]
          elif dataclasses.is_dataclass(v):
              elements_group = parse_cfg_dataclass(cfg=v)
              t = elements_group
          else:
              continue
  
          items += t
  
      return items
  
file_path: h2o-llmstudio/llm_studio/src/utils/config_utils.py
imports: import dataclasses
  import importlib
  from types import ModuleType
  from typing import Any, Dict, List, Type
  import yaml
  from llm_studio.python_configs.base import DefaultConfigProblemBase
  from llm_studio.src.utils.type_annotations import KNOWN_TYPE_ANNOTATIONS
label_desc: Use image node_id 8 for calling a global function with example usage: parse_cfg_dataclass(cfg) and returns: items