code: def test_html_correctly_sets_attr(app: Page):
      """Test that html correctly sets attributes."""
  
      html_component = app.locator("iframe").nth(0)
  
      expect(html_component).to_have_attribute(
          "srcDoc", "<h1>Hello, Streamlit!</h1>"
      )
      expect(html_component).to_have_attribute("width", "200")
      expect(html_component).to_have_attribute("height", "500")
      expect(html_component).to_have_attribute("scrolling", "no")
  
imports: import re
  from playwright.sync_api import Page, expect
  from e2e_playwright.conftest import ImageCompareFunction
label_desc: Use image node_id 2 for calling a global function with example usage: test_html_correctly_sets_attr(app) without return types