code: def validate_layout_type(value):
      if not isinstance(
          value, (Component, patch_collections_abc("Callable"))
      ):
          raise exceptions.NoLayoutException(
              "Layout must be a dash component "
              "or a function that returns a dash component."
          )
  
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 12 for calling a global function with example usage: validate_layout_type(value) without return types