code: def compare_op(self, op):
      opname = op.__class__.__name__
  
      # TODO: in, not
  
      ops = {
          "Eq": "=",
          "NotEq": "!=",
          "Gt": ">",
          "Lt": "<",
          "GtE": ">=",
          "LtE": "<=",
      }
      if opname not in ops:
          raise NotImplementedError(f"Unknown $where op: {opname}")
      return ops[opname]
  
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 4 for calling the MongoWhereParser obj's underlying member method code with example usage: obj.compare_op(op) and returns: ops