code: def test_to_html_google_colab():
      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
      deck = pydeck_examples.create_minimal_test_object()
      output = deck.to_html()
      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 output is None
  
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 7 for calling a global function with example usage: test_to_html_google_colab() without return types