code: def test_to_html_jupyter():
      pydeck.io.html.iframe_with_srcdoc = MagicMock(
          return_value=HTML("Hello")
      )
      pydeck.io.html.render_for_colab = MagicMock()
      pydeck.io.html.in_jupyter = MagicMock(return_value=True)
      deck = pydeck_examples.create_minimal_test_object()
      output = deck.to_html()
      pydeck.io.html.iframe_with_srcdoc.assert_called_once()
      pydeck.io.html.render_for_colab.assert_not_called()
      assert isinstance(output, HTML)
      assert output.data == "Hello"
  
file_path: deck.gl/bindings/pydeck/tests/bindings/test_deck.py
imports: import pytest
  import json
  import pydeck
  from pydeck import Deck
  from IPython.display import HTML
  from .None import pydeck_examples
  from ..fixtures import fixtures
label_desc: Use image node_id 6 for calling a global function with example usage: test_to_html_jupyter() without return types