def convert_to_datetime_object(timestr):
    try:
        date_object = parse_datetime(timestr)
    except __HOLE__ as e:
        raise ParamError("There was an error while parsing the date from %s -- Error: %s" % (timestr, e.message))
    return date_object
dataset/ETHPy150Open adlnet/ADL_LRS/lrs/utils/__init__.py/convert_to_datetime_object