code: def test_dayname(p=english.dayname):
      assert_adatetime(
          p.date_from("next tuesday", basedate),
          year=2010,
          month=9,
          day=21,
      )
      assert_adatetime(
          p.date_from("last tuesday", basedate),
          year=2010,
          month=9,
          day=14,
      )
      assert_adatetime(
          p.date_from("next sunday", basedate),
          year=2010,
          month=9,
          day=26,
      )
      assert_adatetime(
          p.date_from("last sun", basedate), year=2010, month=9, day=19
      )
      assert_adatetime(
          p.date_from("next th", basedate), year=2010, month=9, day=23
      )
  
file_path: whoosh/tests/test_dateparse.py
imports: from whoosh.qparser.dateparse import *
label_desc: Use image node_id 11 for calling a global function with example usage: test_dayname(p) without return types