code: def default(self, obj):
      if isinstance(obj, dt.datetime):
          return f"ISODate({obj.isoformat()})"
      if isinstance(obj, ObjectId):
          return f"ObjectId({str(obj)})"
      return super(MongoJSONEncoder, self).default(obj)
  
file_path: mindsdb/mindsdb/api/mongo/utilities/mongodb_query.py
imports: import datetime
  from json import JSONEncoder
  from bson import ObjectId
label_desc: Use image node_id 1 for calling the MongoJSONEncoder obj's underlying member method code with example usage: obj.default(obj) and returns: super, str, obj, str, str, str, str