code: def to_mongo_query(self, node):
      if isinstance(node, Select):
          return self.select(node)
      elif isinstance(node, Update):
          return self.update(node)
      raise NotImplementedError(
          f"Unknown statement: {node.__class__.__name__}"
      )
  
file_path: mindsdb/mindsdb/integrations/handlers/mongodb_handler/utils/mongodb_render.py
imports: import datetime
  from mindsdb_sql.parser.ast import *
  from mindsdb.api.mongo.utilities.mongodb_query import MongoQuery
label_desc: Use image node_id 1 for calling the MongodbRender obj's underlying member method code with example usage: obj.to_mongo_query(node) and returns: self, self