code: def test_vegalite_compiler(chart):
      vegalite_spec = chart.to_dict()
      vega_spec = vegalite_compilers.get()(vegalite_spec)
      assert_is_vega_spec(vega_spec)
  
file_path: altair/tests/utils/test_compiler.py
imports: import json
  import pytest
  from altair import vegalite_compilers, Chart
label_desc: Use image node_id 3 for calling a global function with example usage: test_vegalite_compiler(chart) without return types