code: def test_timedelta():
      assert_dshape_equal(TimeDelta(), TimeDelta())
      assert_dshape_equal(TimeDelta("ns"), TimeDelta("ns"))
  
      with pytest.raises(AssertionError) as e:
          assert_dshape_equal(TimeDelta("us"), TimeDelta("ns"))
      assert "'us' != 'ns'" in str(e.value)
      assert "_.unit" in str(e.value)
  
      assert_dshape_equal(
          TimeDelta("us"),
          TimeDelta("ns"),
          check_timedelta_unit=False,
      )
  
file_path: datashader/datashader/datashape/util/tests/test_testing.py
imports: import pytest
  from datashader.datashape.coretypes import DateTime, R, String, Time, TimeDelta, Tuple, Option, int32, float32
  from datashader.datashape.util import dshape
  from datashader.datashape.util.testing import assert_dshape_equal
label_desc: Use image node_id 7 for calling a global function with example usage: test_timedelta() without return types