code: def check_config_for_errors(cfg: DefaultConfigProblemBase) -> dict:
      """
      Checks the configuration for consistency.
          Parameters:
      - cfg (DefaultConfigProblemBase):
      The config object to be checked.
  
      Returns:
      A dictionary with two keys:
      - "title": A list of error titles.
      - "message": A list of error messages.
      """
      errors = check_for_common_errors(cfg)
      problem_type_errors = cfg.check()
      errors["title"].extend(problem_type_errors["title"])
      errors["message"].extend(problem_type_errors["message"])
      return errors
  
file_path: h2o-llmstudio/llm_studio/python_configs/cfg_checks.py
imports: import logging
  import os
  from typing import Dict, List
  import torch
  from llm_studio.app_utils.config import default_cfg
  from llm_studio.python_configs.base import DefaultConfigProblemBase
  from llm_studio.src.utils.export_utils import get_size_str
label_desc: Use image node_id 1 for calling a global function with example usage: check_config_for_errors(cfg) and returns: errors