code: def test_sanitize_dataframe_timedelta():
      df = pd.DataFrame(
          {"r": pd.timedelta_range(start="1 day", periods=4)}
      )
      with pytest.raises(ValueError) as err:
          sanitize_dataframe(df)
      assert str(err.value).startswith('Field "r" has type "timedelta')
  
file_path: altair/tests/utils/test_utils.py
imports: import io
  import json
  import warnings
  import numpy
  import pandas
  import pytest
  from altair.utils import infer_vegalite_type, sanitize_dataframe
label_desc: Use image node_id 5 for calling a global function with example usage: test_sanitize_dataframe_timedelta() without return types