code: def test_vegalite_major_version(vegalite_spec, version):
      vegalite = folium.features.VegaLite(vegalite_spec)
  
      if version is None:
          assert vegalite.vegalite_major_version is None
      else:
          assert vegalite.vegalite_major_version == version
  
imports: import json
  import os
  import warnings
  import pytest
  from branca.element import Element
  import folium
  from folium import Choropleth, ClickForMarker, GeoJson, Map, Popup
label_desc: Use image node_id 10 for calling a global function with example usage: test_vegalite_major_version(vegalite_spec, version) without return types