code: def get_tokens(condition):
          
          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
docs: Get AST tokens for Python condition.
  
          Returns:
              list: list of AST tokens