def render_guide(subcommand: str | None = None) -> list[Panel | Markdown]:
    """Render a guide for the specified subcommand.

    This function generates a formatted guide containing usage instructions and examples
    for a given CLI subcommand.

    Args:
        subcommand: The subcommand to render the guide for. If None or not found in
            DOCSTRING_USAGE, returns an empty list.

    Returns:
        A list containing rich formatting elements (Panel, Markdown) to be displayed
        in the guide.

    Examples:
        >>> # Empty list for invalid subcommand
        >>> render_guide("invalid")
        []

        >>> # Guide with intro and usage for valid subcommand
        >>> guide = render_guide("train")
        >>> len(guide) > 0
        True

    Notes:
        - The guide includes an introduction section from `get_intro()`
        - For valid subcommands, adds CLI usage from docstrings and verbose usage info
        - Usage is formatted in a Panel with "Quick-Start" title
    """
    if subcommand is None or subcommand not in DOCSTRING_USAGE:
        return []
    contents = [get_intro()]
    target_command = DOCSTRING_USAGE[subcommand]
    cli_usage = get_cli_usage_docstring(target_command)
    if cli_usage is not None:
        cli_usage += f"\n{get_verbose_usage(subcommand)}"
        quick_start = Panel(Markdown(cli_usage), border_style="dim", title="Quick-Start", title_align="left")
        contents.append(quick_start)
    return contents
Render a guide for the specified subcommand.

    This function generates a formatted guide containing usage instructions and examples
    for a given CLI subcommand.

    Args:
        subcommand: The subcommand to render the guide for. If None or not found in
            DOCSTRING_USAGE, returns an empty list.

    Returns:
        A list containing rich formatting elements (Panel, Markdown) to be displayed
        in the guide.

    Examples:
        >>> # Empty list for invalid subcommand
        >>> render_guide("invalid")
        []

        >>> # Guide with intro and usage for valid subcommand
        >>> guide = render_guide("train")
        >>> len(guide) > 0
        True

    Notes:
        - The guide includes an introduction section from `get_intro()`
        - For valid subcommands, adds CLI usage from docstrings and verbose usage info
        - Usage is formatted in a Panel with "Quick-Start" title
    
src/anomalib/cli/utils/help_formatter.py