def timestring_to_datetime(timestring):
with warnings.catch_warnings():<EOL><INDENT>warnings.filterwarnings("<STR_LIT:ignore>", category=UnicodeWarning)<EOL>result = dateutil_parser(timestring)<EOL><DEDENT>return result<EOL>
Convert an ISO formated date and time string to a datetime object.

:param str timestring: String with date and time in ISO format.
:rtype: datetime
:return: datetime object