code: def test_load_auth_settings():
      settings = {"active": True, "username": "foo", "password": "foo"}
      with ExitStack() as stack:
          stack.enter_context(
              mock.patch("dtale.global_state.AUTH_SETTINGS", settings)
          )
  
          load_auth_settings(None)
          assert settings["active"]
          assert settings["username"] == "foo"
          assert settings["password"] == "foo"
  
          load_auth_settings(
              load_config_state(
                  os.path.join(os.path.dirname(__file__), "dtale.ini")
              )
          )
          assert not settings["active"]
          assert settings["username"] == "admin"
          assert settings["password"] == "admin"
  
file_path: dtale/tests/dtale/config/test_config.py
imports: import mock
  import os
  import pytest
  from dtale.config import load_app_settings, load_auth_settings, load_config_state, build_show_options, set_config
  from tests import ExitStack
label_desc: Use image node_id 3 for calling a global function with example usage: test_load_auth_settings() without return types