code: def test_deck_to_html():
      pydeck.io.html.iframe_with_srcdoc = MagicMock(
          return_value=HTML("Hello")
      )
      pydeck.io.html.render_for_colab = MagicMock()
      pydeck.io.html.in_google_colab = True
      html = deck_to_html(fixtures["minimal"])
      pydeck.io.html.in_google_colab = False
      pydeck.io.html.iframe_with_srcdoc.assert_not_called()
      pydeck.io.html.render_for_colab.assert_called_once()
      assert html is None
  
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 8 for calling a global function with example usage: test_deck_to_html() without return types