code: def test_pala004_no_layout_exception(clear_pages_state):
      error_msg = 'No layout found in module pages_error.no_layout_page\nA variable or a function named "layout" is required.'
  
      with pytest.raises(NoLayoutException) as err:
          Dash(__name__, use_pages=True, pages_folder="pages_error")
  
      assert error_msg in err.value.args[0]
  
file_path: dash/tests/integration/multi_page/test_pages_layout.py
imports: import pytest
  import dash
  from dash import Dash, Input, State, dcc, html
  from dash.dash import _ID_LOCATION
  from dash.exceptions import NoLayoutException
label_desc: Use image node_id 6 for calling a global function with example usage: test_pala004_no_layout_exception(clear_pages_state) without return types