code: def test_load_config():
      config_dir = mkdtemp()
      os.environ["JUPYTER_CONFIG_PATH"] = str(config_dir)
      with open(
          pjoin(config_dir, "dummy_app_config.py"),
          "w",
          encoding="utf-8",
      ) as f:
          f.write("c.DummyApp.m = 1\n")
          f.write("c.DummyApp.n = 1")
  
      app = DummyApp(config_dir=config_dir)
      app.initialize([])
  
      assert app.n == 1, "Loaded config from config dir"
      assert app.m == 1, "Loaded config from config dir"
  
      shutil.rmtree(config_dir)
      del os.environ["JUPYTER_CONFIG_PATH"]
  
imports: from __future__ import annotations
  import asyncio
  import os
  import shutil
  from tempfile import mkdtemp
  from unittest.mock import patch
  import pytest
  from traitlets import Integer
  from jupyter_core.application import JupyterApp, JupyterAsyncApp, NoStart
  from jupyter_core.utils import ensure_event_loop
label_desc: Use image node_id 6 for calling a global function with example usage: test_load_config() without return types