code: def test_type_error():
      """Ensure that TypeError is raised for types other than dict/DataFrame."""
      for f in (sample, limit_rows, to_values):
          with pytest.raises(TypeError):
              pipe(0, f)
  
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 6 for calling a global function with example usage: test_type_error() without return types