def _validate_parse_dates_arg(parse_dates):
msg = ("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>")<EOL>if parse_dates is not None:<EOL><INDENT>if is_scalar(parse_dates):<EOL><INDENT>if not lib.is_bool(parse_dates):<EOL><INDENT>raise TypeError(msg)<EOL><DEDENT><DEDENT>elif not isinstance(parse_dates, (list, dict)):<EOL><INDENT>raise TypeError(msg)<EOL><DEDENT><DEDENT>return parse_dates<EOL>
Check whether or not the 'parse_dates' parameter
is a non-boolean scalar. Raises a ValueError if
that is the case.