code: def test_iframe_with_srcdoc():
      import IPython
  
      IPython.display.HTML = MagicMock()
      html_str = "<html></html>"
      iframe_with_srcdoc(html_str)
      escaped_html_str = html.escape("<html></html>")
  
      iframe = f"""
          <iframe
              width="100%"
              height=500
              frameborder="0"
              srcdoc="{escaped_html_str}"
          ></iframe>
      """
  
      IPython.display.HTML.assert_called_once_with(iframe)
  
file_path: deck.gl/bindings/pydeck/tests/io/test_html.py
imports: import html
  import webbrowser
  import pydeck
  from pydeck.io.html import cdn_picker, display_html, iframe_with_srcdoc, in_jupyter, render_json_to_html, deck_to_html, CDN_URL
  from IPython.display import HTML
  from ..fixtures import fixtures
label_desc: Use image node_id 4 for calling a global function with example usage: test_iframe_with_srcdoc() without return types