code: def test_to_values():
      """Test the to_values data transformer."""
      data = _create_dataframe(10)
      result = pipe(data, to_values)
      assert result == {"values": data.to_dict(orient="records")}
  
file_path: altair/tests/utils/test_data.py
imports: import os
  import pytest
  import pandas
  from toolz import pipe
  from altair.utils.data import limit_rows, MaxRowsError, sample, to_values, to_json, to_csv
label_desc: Use image node_id 5 for calling a global function with example usage: test_to_values() without return types