def _check_datetime(self, node):
try:<EOL><INDENT>infered = next(node.infer())<EOL><DEDENT>except astroid.InferenceError:<EOL><INDENT>return<EOL><DEDENT>if isinstance(infered, Instance) and infered.qname() == "<STR_LIT>":<EOL><INDENT>self.add_message("<STR_LIT>", node=node)<EOL><DEDENT>
Check that a datetime was infered.
        If so, emit boolean-datetime warning.