def METHOD_NAME(self, script_engine, text):
    try:
        # this should work if we can just do a straight equality
        script_engine.validate(text)
        return True
    except SyntaxError:
        # if we have problems parsing, then we introduce a variable on the left hand side
        # and try that and see if that parses. If so, then we know that we do not need to
        # introduce an equality operator later in the dmn
        script_engine.validate(f'v {text}')
        return False