code: def test_pages_folder_app_config(
      empty_environ, clear_pages_state, use_pages, pages_folder
  ):
      app = Dash(
          __name__, use_pages=use_pages, pages_folder=pages_folder
      )
      if use_pages is None:
          expected_use_pages = bool(pages_folder != "pages")
      elif use_pages in (True, False):
          expected_use_pages = use_pages
      assert app.use_pages == expected_use_pages
      assert app.pages_folder == str(pages_folder)
  
file_path: dash/tests/unit/pages/test_pages_config.py
imports: from contextlib import contextmanager
  from pathlib import Path
  import pytest
  from dash import Dash, exceptions
  from dash._configs import pages_folder_config
label_desc: Use image node_id 4 for calling a global function with example usage: test_pages_folder_app_config(empty_environ, clear_pages_state, use_pages, pages_folder) without return types