code: def test_vegafusion_chart_to_vega_mime_bundle(vegalite_spec):
      chart = alt.Chart.from_dict(vegalite_spec)
      with alt.data_transformers.enable(
          "vegafusion"
      ), alt.renderers.enable("json"):
          bundle = chart._repr_mimebundle_()
          vega_spec = bundle[0]["application/json"]
          check_pre_transformed_vega_spec(vega_spec)
  
file_path: altair/tests/utils/test_mimebundle.py
imports: import pytest
  import altair
  from altair import VEGA_VERSION
  from altair.utils.mimebundle import spec_to_mimebundle
label_desc: Use image node_id 9 for calling a global function with example usage: test_vegafusion_chart_to_vega_mime_bundle(vegalite_spec) without return types