code: def default_data_transformer(
      data: DataType, max_rows: int = 5000
  ) -> ToValuesReturnType:
      return curried.pipe(
          data, limit_rows(max_rows=max_rows), to_values
      )
  
file_path: altair/altair/vegalite/data.py
imports: from toolz import curried
  from ..utils.core import sanitize_dataframe
  from ..utils.data import MaxRowsError, curry, limit_rows, pipe, sample, to_csv, to_json, to_values, check_data_type
  from ..utils.data import DataTransformerRegistry
  from ..utils.data import DataType, ToValuesReturnType
  from ..utils.plugin_registry import PluginEnabler
label_desc: Use image node_id 1 for calling a global function with example usage: default_data_transformer(data, max_rows) and returns: curried