code: def test_parse_human_datetime() -> None:
      with pytest.raises(TimeRangeAmbiguousError):
          parse_human_datetime("2 days")
  
      with pytest.raises(TimeRangeAmbiguousError):
          parse_human_datetime("2 day")
  
      with pytest.raises(TimeRangeParseFailError):
          parse_human_datetime("xxxxxxx")
  
      assert parse_human_datetime("2015-04-03") == datetime(
          2015, 4, 3, 0, 0
      )
      assert parse_human_datetime("2/3/1969") == datetime(
          1969, 2, 3, 0, 0
      )
  
      assert parse_human_datetime("now") <= datetime.now()
      assert parse_human_datetime("yesterday") < datetime.now()
      assert (
          date.today() - timedelta(1)
          == parse_human_datetime("yesterday").date()
      )
  
      assert (
          parse_human_datetime("one year ago").date()
          == (datetime.now() - relativedelta(years=1)).date()
      )
      assert (
          parse_human_datetime("2 years after").date()
          == (datetime.now() + relativedelta(years=2)).date()
      )
  
file_path: superset/tests/unit_tests/utils/date_parser_tests.py
imports: import re
  from datetime import date, datetime, timedelta
  from typing import Optional
  from unittest.mock import Mock, patch
  import pytest
  from dateutil.relativedelta import relativedelta
  from superset.commands.chart.exceptions import TimeRangeAmbiguousError, TimeRangeParseFailError
  from superset.utils.date_parser import DateRangeMigration, datetime_eval, get_past_or_future, get_since_until, parse_human_datetime, parse_human_timedelta, parse_past_timedelta
label_desc: Use image node_id 7 for calling a global function with example usage: test_parse_human_datetime() without return types