code: def validate_pages_layout(module, page):
      if not hasattr(page, "layout"):
          raise exceptions.NoLayoutException(
              f"""
              No layout found in module {module}
              A variable or a function named "layout" is required.
              """
          )
  
imports: from collections.abc import MutableSequence
  import re
  from textwrap import dedent
  from keyword import iskeyword
  import flask
  from ._grouping import grouping_len, map_grouping
  from .development.base_component import Component
  from .None import exceptions
  from ._utils import patch_collections_abc, stringify_id, to_json, coerce_to_list, clean_property_name
label_desc: Use image node_id 17 for calling a global function with example usage: validate_pages_layout(module, page) without return types