code: def test_chart_with_no_interactivity(transformer):
      with alt.data_transformers.enable(transformer):
          source = pd.DataFrame(
              {
                  "a": ["A", "B", "C", "D", "E", "F", "G", "H", "I"],
                  "b": [28, 55, 43, 91, 81, 53, 19, 87, 52],
              }
          )
  
          chart = alt.Chart(source).mark_bar().encode(x="a", y="b")
          widget = alt.JupyterChart(chart)
  
          if transformer == "vegafusion":
              # With the "vegafusion" transformer, the spec is not computed until the front-end
              # sets the local_tz. Assign this property manually to simulate this.
              widget.local_tz = "UTC"
              assert widget.spec == chart.to_dict(format="vega")
          else:
              assert widget.spec == chart.to_dict()
  
          # There should be no params or selections initialized
          assert len(widget.selections.trait_values()) == 0
          assert len(widget.params.trait_values()) == 0
  
file_path: altair/tests/test_jupyter_chart.py
imports: import altair
  from altair.jupyter.jupyter_chart import IntervalSelection, IndexSelection, PointSelection
  from vega_datasets import data
  import pandas
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_chart_with_no_interactivity(transformer) without return types