code: def _load_user_settings(q: Q):
      if os.path.isfile(_get_usersettings_path(q)):
          logger.info("Reading user settings")
          with open(_get_usersettings_path(q), "r") as f:
              user_settings = yaml.load(f, Loader=yaml.FullLoader)
          for key in USER_SETTING_KEYS:
              q.client[key] = user_settings.get(
                  key, default_cfg.user_settings[key]
              )
      else:
          logger.info("No user settings found. Using default settings.")
          # User may have deleted the user settings file. We load the default settings.
          # Secrets may still be stored in keyring or env file.
          load_default_user_settings(q, clear_secrets=False)
  
imports: import errno
  import functools
  import logging
  import os
  import pickle
  import signal
  import traceback
  from typing import Any, List
  import keyring
  import yaml
  from h2o_wave import Q, ui
  from keyring.errors import KeyringLocked, PasswordDeleteError
  from llm_studio.app_utils.config import default_cfg
  from llm_studio.app_utils.utils import get_database_dir, get_user_id
label_desc: Use image node_id 6 for calling a global function with example usage: _load_user_settings(q) without return types