def dateutil_parse(date_string, settings=None, **kwargs):
    """Wrapper function around dateutil.parser.parse
    """
    today = datetime.utcnow()
    kwargs.update(default=today)
    date_string = re.sub(r'\b(year|month|week|day)\b', '', date_string, re.I)

    # XXX: this is needed because of a bug in dateutil.parser
    # that raises TypeError for an invalid string
    # https://bugs.launchpad.net/dateutil/+bug/1042851
    try:
        return new_parser().parse(date_string, settings=settings, **kwargs)
    except __HOLE__ as e:
        raise ValueError(e, "Invalid date: %s" % date_string)
dataset/ETHPy150Open scrapinghub/dateparser/dateparser/date_parser.py/dateutil_parse