code: def test_renders_with_specified_engines(
      app: Page, assert_snapshot: ImageCompareFunction
  ):
      """Test if it renders with specified engines."""
  
      engines = [
          "dot",
          "neato",
          "twopi",
          "circo",
          "fdp",
          "osage",
          "patchwork",
      ]
  
      radios = app.query_selector_all('label[data-baseweb="radio"]')
  
      for idx, engine in enumerate(engines):
          radios[idx].click(force=True)
          wait_for_app_run(app)
          expect(app.get_by_test_id("stMarkdown").nth(0)).to_have_text(
              engine
          )
  
          assert_snapshot(
              app.locator(".stGraphVizChart > svg").nth(2),
              name=f"st_graphviz_chart_engine-{engine}",
          )
  
file_path: streamlit/e2e_playwright/st_graphviz_chart_test.py
imports: from playwright.sync_api import Page, expect
  from e2e_playwright.conftest import ImageCompareFunction, wait_for_app_run
label_desc: Use image node_id 8 for calling a global function with example usage: test_renders_with_specified_engines(app, assert_snapshot) without return types