code: def to_ast(self):
      # parse as python string
      # replace '=' with '=='
      query = re.sub(r"([^=><])=([^=])", r"\1==\2", self.query)
  
      tree = py_ast.parse(query, mode="eval")
      return self.process(tree.body)
  
file_path: mindsdb/mindsdb/api/mongo/utilities/mongodb_ast.py
imports: import re
  import ast
  import typing
  from mindsdb_sql.parser.ast import OrderBy, Identifier, Star, Select, Constant, BinaryOperation, Tuple, Latest
label_desc: Use image node_id 2 for calling the MongoWhereParser obj's underlying member method code with example usage: obj.to_ast() and returns: self