code: def __getattr__(self, item):
      # return callback to save step of pipeline
      def fnc(*args):
          self.pipeline.append({"method": item, "args": args})
  
      return fnc
  
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 4 for calling the MongoQuery obj's underlying member method code with example usage: obj.__getattr__(item) and returns: fnc