code: def test_vegafusion_spec_to_vega_mime_bundle(vegalite_spec):
      with alt.data_transformers.enable("vegafusion"):
          bundle = spec_to_mimebundle(
              spec=vegalite_spec,
              mode="vega-lite",
              format="vega",
          )
          # Returned bundle will be vega
          vega_spec = bundle["application/vnd.vega.v5+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 8 for calling a global function with example usage: test_vegafusion_spec_to_vega_mime_bundle(vegalite_spec) without return types