<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_tokens(condition):
 """ Get AST tokens for Python condition. Returns: list: list of AST tokens """

        try:
            ast_tokens = list(ast.walk(ast.parse(condition.strip())))
        except SyntaxError as exception:
            Logger.get_logger(__name__).error("Syntax error: %s", exception)
            ast_tokens = []
        return ast_tokens