def test_render_guide() -> None:
    """Test if the guide is correctly rendered."""
    subcommand = "fit"
    contents = render_guide(subcommand)
    assert len(contents) == 2
    assert contents[0].__class__.__name__ == "Markdown"
    assert "# Anomalib CLI Guide" in contents[0].markup
    assert contents[1].__class__.__name__ == "Panel"
    assert "anomalib fit --model anomalib.models.Padim" in contents[1].renderable.markup
    assert render_guide(None) == []
Test if the guide is correctly rendered.
tests/unit/cli/test_help_formatter.py