code: def test_simple_dateparse(t=english.simple):
      assert_adatetime(t.date_from("2005", basedate), year=2005)
      assert_adatetime(
          t.date_from("200505", basedate), year=2005, month=5
      )
      assert_adatetime(
          t.date_from("20050510", basedate), year=2005, month=5, day=10
      )
      assert_adatetime(
          t.date_from("2005051001", basedate),
          year=2005,
          month=5,
          day=10,
          hour=1,
      )
      assert_adatetime(
          t.date_from("200505100108", basedate),
          year=2005,
          month=5,
          day=10,
          hour=1,
          minute=8,
      )
      assert_adatetime(
          t.date_from("20050510010835", basedate),
          year=2005,
          month=5,
          day=10,
          hour=1,
          minute=8,
          second=35,
      )
  
      assert_adatetime(
          t.date_from("2005-05", basedate), year=2005, month=5
      )
      assert_adatetime(
          t.date_from("2005 05 10", basedate),
          year=2005,
          month=5,
          day=10,
      )
      assert_adatetime(
          t.date_from("2005.05.10.01", basedate),
          year=2005,
          month=5,
          day=10,
          hour=1,
      )
      assert_adatetime(
          t.date_from("2005/05/10 01:08", basedate),
          year=2005,
          month=5,
          day=10,
          hour=1,
          minute=8,
      )
      assert_adatetime(
          t.date_from("2005.05.10  01:08:35", basedate),
          year=2005,
          month=5,
          day=10,
          hour=1,
          minute=8,
          second=35,
      )
  
      assert t.date_from("2005 02 31", basedate) is None
      assert t.date_from("2005-13-32", basedate) is None
  
file_path: whoosh/tests/test_dateparse.py
imports: from whoosh.qparser.dateparse import *
label_desc: Use image node_id 6 for calling a global function with example usage: test_simple_dateparse(t) without return types