code: def test_plustime(rt=english.plusdate):
      assert rt.date_from("+1hr", basedate) == basedate + timedelta(
          hours=1
      )
      assert rt.date_from("+5mins", basedate) == basedate + timedelta(
          minutes=5
      )
      assert rt.date_from("+20s", basedate) == basedate + timedelta(
          seconds=20
      )
  
      assert rt.date_from("- 2 h", basedate) == basedate + timedelta(
          hours=-2
      )
      assert rt.date_from(
          "- 25 minutes", basedate
      ) == basedate + timedelta(minutes=-25)
      assert rt.date_from(
          "-400 secs", basedate
      ) == basedate + timedelta(seconds=-400)
  
      assert rt.date_from("+1hr 5m", basedate) == basedate + timedelta(
          hours=1, minutes=5
      )
      assert rt.date_from("-8hr 12m", basedate) == basedate + timedelta(
          hours=-8, minutes=-12
      )
      assert rt.date_from("+1hr 5s", basedate) == basedate + timedelta(
          hours=1, seconds=5
      )
      assert rt.date_from(
          "+1hr 12m 5s", basedate
      ) == basedate + timedelta(hours=1, minutes=12, seconds=5)
      assert rt.date_from("-1hr 5s", basedate) == basedate + timedelta(
          hours=-1, seconds=-5
      )
      assert rt.date_from(
          "-1hr 12m 5s", basedate
      ) == basedate + timedelta(hours=-1, minutes=-12, seconds=-5)
  
file_path: whoosh/tests/test_dateparse.py
imports: from whoosh.qparser.dateparse import *
label_desc: Use image node_id 9 for calling a global function with example usage: test_plustime(rt) without return types