def _check_type_x_is_y(self, node, left, operator, right):
left_func = utils.safe_infer(left.func)<EOL>if not (<EOL>isinstance(left_func, astroid.ClassDef) and left_func.qname() == TYPE_QNAME<EOL>):<EOL><INDENT>return<EOL><DEDENT>if operator in ("<STR_LIT>", "<STR_LIT>") and _is_one_arg_pos_call(right):<EOL><INDENT>right_func = utils.safe_infer(right.func)<EOL>if (<EOL>isinstance(right_func, astroid.ClassDef)<EOL>and right_func.qname() == TYPE_QNAME<EOL>):<EOL><INDENT>right_arg = utils.safe_infer(right.args[<NUM_LIT:0>])<EOL>if not isinstance(right_arg, LITERAL_NODE_TYPES):<EOL><INDENT>return<EOL><DEDENT><DEDENT><DEDENT>self.add_message("<STR_LIT>", node=node)<EOL>
Check for expressions like type(x) == Y.