code: def test_date_xrange():
      """Test dateline with xrange"""
      datey = DateLine(truncate_label=1000)
      datey.add(
          "dates",
          [
              (date(2013, 1, 2), 300),
              (date(2013, 1, 12), 412),
              (date(2013, 2, 2), 823),
              (date(2013, 2, 22), 672),
          ],
      )
  
      datey.xrange = (date(2013, 1, 1), date(2013, 3, 1))
  
      q = datey.render_pyquery()
      dates = list(
          map(lambda t: t.split(" ")[0], q(".axis.x text").map(texts))
      )
      assert dates == [
          "2013-01-01",
          "2013-01-12",
          "2013-01-24",
          "2013-02-04",
          "2013-02-16",
          "2013-02-27",
      ]
  
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 5 for calling a global function with example usage: test_date_xrange() without return types