code: def test_convert(
      input_data,
      properties,
      expected_datapoints,
      expected_properties,
  ):
      converter = VegaConverter("f", input_data, properties)
      datapoints, resolved_properties = converter.flat_datapoints("r")
  
      assert datapoints == expected_datapoints
      assert resolved_properties == expected_properties
  
file_path: dvc/tests/unit/render/test_vega_converter.py
imports: from collections import OrderedDict
  import pytest
  from dvc.exceptions import DvcException
  from dvc.render import FIELD, FILENAME, REVISION
  from dvc.render.converter.vega import FieldNotFoundError, VegaConverter, _lists
label_desc: Use image node_id 2 for calling a global function with example usage: test_convert(input_data, properties, expected_datapoints, expected_properties) without return types