code: def test_import_layouts_from_pages(
      clear_pages_state, name, pages_folder, expected_module_name
  ):
      _ = Dash(name, use_pages=True, pages_folder=pages_folder)
      assert len(dash.page_registry) == 1
  
      page_entry = list(dash.page_registry.values())[0]
      assert page_entry["module"] == expected_module_name
  
file_path: dash/tests/unit/pages/test_pages.py
imports: from pathlib import Path
  import pytest
  import dash
  from dash import Dash, _pages
  from mock import patch
label_desc: Use image node_id 4 for calling a global function with example usage: test_import_layouts_from_pages(clear_pages_state, name, pages_folder, expected_module_name) without return types