code: def test_timedelta():
      """Test a simple timedeltaline"""
      timedelta_chart = TimeDeltaLine(truncate_label=1000)
      timedelta_chart.add(
          "timedeltas",
          [
              (timedelta(seconds=1), 10),
              (timedelta(weeks=1), 50),
              (timedelta(hours=3, seconds=30), 3),
              (timedelta(microseconds=12112), 0.3),
          ],
      )
  
      q = timedelta_chart.render_pyquery()
      assert list(
          t for t in q(".axis.x text").map(texts) if t != "0:00:00"
      ) == [
          "1 day, 3:46:40",
          "2 days, 7:33:20",
          "3 days, 11:20:00",
          "4 days, 15:06:40",
          "5 days, 18:53:20",
          "6 days, 22:40:00",
      ]
  
file_path: pygal/pygal/test/test_date.py
imports: from datetime import date, datetime, time, timedelta, timezone
  from pygal import DateLine, DateTimeLine, TimeDeltaLine, TimeLine
  from pygal._compat import timestamp
  from pygal.test.utils import texts
label_desc: Use image node_id 4 for calling a global function with example usage: test_timedelta() without return types