def _is_jsonrpc_request(self):
        """
        Check if the request is valid json-rpc 2.0
        """

        if(not request.content_type == "application/json-rpc"):
            msg = "Invalid Request: The server received an "
            msg += "invalid content_type"
            return {"code":-32600, "message":msg}

        for f in self.request_fields["required"]:
            if(not request.json in f):
                msg = "Invalid Request: The JSON sent is not a valid "
                msg += "Request object"
                return {"code":-32600, "message":msg}
        if(request.json["jsonrpc"] != "2.0"):
            msg = "Invalid Request: The JSON RPC version must be 2.0"
            return {"code":-32600, "message":msg}

        return {}
dataset/ETHPy150Open pyjs/pyjs/examples/misc/flaskexamples/flaskcelery/flask_source/method_views.py/JSONRPCView._is_jsonrpc_request/swapped operands of `in`