code: def test_load_config_no_cwd():
      config_dir = mkdtemp()
      wd = mkdtemp()
      with open(
          pjoin(wd, "dummy_app_config.py"), "w", encoding="utf-8"
      ) as f:
          f.write("c.DummyApp.m = 1\n")
          f.write("c.DummyApp.n = 1")
      with patch.object(os, "getcwd", lambda: wd):
          app = DummyApp(config_dir=config_dir)
          app.initialize([])
  
      assert app.n == 0
      assert app.m == 0
  
      shutil.rmtree(config_dir)
      shutil.rmtree(wd)
  
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 7 for calling a global function with example usage: test_load_config_no_cwd() without return types