code: def test_datetime():
      """Test a simple datetimeline"""
      datetime_chart = DateTimeLine(truncate_label=1000)
      datetime_chart.add(
          "datetimes",
          [
              (datetime(2013, 1, 2, 1, 12, 29), 300),
              (datetime(2013, 1, 12, 21, 2, 29), 412),
              (datetime(2013, 2, 2, 12, 30, 59), 823),
              (datetime(2013, 2, 22), 672),
          ],
      )
  
      q = datetime_chart.render_pyquery()
      dates = list(
          map(lambda t: t.split(" ")[0], q(".axis.x text").map(texts))
      )
      assert dates == [
          "2013-01-12T14:13:20",
          "2013-01-24T04:00:00",
          "2013-02-04T17:46:40",
          "2013-02-16T07:33:20",
      ]
  
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 3 for calling a global function with example usage: test_datetime() without return types