code: def check_pre_transformed_vega_spec(vega_spec):
      assert (
          vega_spec["$schema"]
          == f"https://vega.github.io/schema/vega/v{VEGA_VERSION}.json"
      )
  
      # Check data_0 is there
      data_0 = vega_spec["data"][1]
      assert data_0["name"] == "data_0"
  
      # Check that the bin transform has been applied
      row0 = data_0["values"][0]
      assert row0 == {"a": "A", "b": 28, "b_end": 28.0, "b_start": 0.0}
  
      # And no transforms remain
      assert len(data_0.get("transform", [])) == 0
  
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 7 for calling a global function with example usage: check_pre_transformed_vega_spec(vega_spec) without return types