code: def test_infer_vegalite_type(data, type):
      assert infer_vegalite_type(data) == type
  
imports: import pytest
  import pandas
  import numpy
  from pdvega._utils import infer_vegalite_type, unpivot_frame, validate_aggregation
label_desc: Use image node_id 1 for calling a global function with example usage: test_infer_vegalite_type(data, type) without return types