code: def walk(
      container: Container, skip_hidden: bool = False
  ) -> Iterable[Container]:
      """
      Walk through layout, starting at this container.
      """
      # When `skip_hidden` is set, don't go into disabled ConditionalContainer containers.
      if (
          skip_hidden
          and isinstance(container, ConditionalContainer)
          and not container.filter()
      ):
          return
  
      yield container
  
      for c in container.get_children():
          # yield from walk(c)
          yield from walk(c, skip_hidden=skip_hidden)
  
imports: from __future__ import annotations
  from typing import Generator, Iterable, Union
  from prompt_toolkit.buffer import Buffer
  from .containers import AnyContainer, ConditionalContainer, Container, Window, to_container
  from .controls import BufferControl, SearchBufferControl, UIControl
label_desc: Use image node_id 1 for calling a global function with example usage: walk(container, skip_hidden) without return types