code: def test_json_output():
      """Verify that the JSON rendering produces an @deck.gl/json library-compliant JSON object
  
      Screen capture tests that correspond to the JSON output here is in `/test/render/jupyter-widget.js`
      in the root of the deck.gl repo.
      """
      TEST_CASES = [
          (
              pydeck_examples.create_local_image_test_object(),
              fixtures["local-image"],
              "local-image",
          ),
          (
              pydeck_examples.create_minimal_test_object(),
              fixtures["minimal"],
              "minimal",
          ),
          (
              pydeck_examples.create_heatmap_test_object(),
              fixtures["heatmap-layer-function"],
              "heatmap-layer-function",
          ),
          (
              pydeck_examples.create_geojson_layer_test_object(),
              fixtures["geojson-layer"],
              "geojson-layer",
          ),
          (
              pydeck_examples.create_multi_layer_test_object(),
              fixtures["multilayers"],
              "multilayers",
          ),
          (
              pydeck_examples.create_scatterplot_test_object(),
              fixtures["scatterplot"],
              "scatterplot",
          ),
          (
              pydeck_examples.create_stacked_test_object(),
              fixtures["stacked"],
              "stacked",
          ),
      ]
      for t in TEST_CASES:
          actual, expected = t[0], t[1]
          assert json.loads(str(actual.to_json())) == json.loads(
              expected
          )
  
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 2 for calling a global function with example usage: test_json_output() without return types