code: def _result(self, query, request_env, mindsdb_env):
      table = query["insert"]
  
      if table == "databases":
          self._insert_database(query, request_env, mindsdb_env)
  
      elif table in ["predictors", "models"]:
          self._insert_model(query, request_env, mindsdb_env)
  
      elif table == "jobs":
          self._insert_job(query, request_env, mindsdb_env)
  
      elif table == "ml_engines":
          self._insert_ml_engine(query, request_env, mindsdb_env)
  
      else:
          # regular insert
  
          df = pd.DataFrame(query["documents"])
          if "_id" in df.columns:
              df = df.drop("_id", axis=1)
  
          data = df.to_dict("split")
          values = []
          for row in data["data"]:
              values.append([Constant(i) for i in row])
          ast_query = Insert(
              table=Identifier(table),
              columns=[TableColumn(c) for c in data["columns"]],
              values=values,
          )
  
          run_sql_command(request_env, ast_query)
  
      result = {"n": len(query["documents"]), "ok": 1}
  
      return result
  
file_path: mindsdb/mindsdb/api/mongo/responders/insert.py
imports: import pandas
  from mindsdb_sql.parser.ast import Constant, Identifier, Insert, OrderBy, TableColumn
  from mindsdb_sql.parser.dialects.mindsdb import CreateJob, CreateMLEngine, CreatePredictor, FinetunePredictor, RetrainPredictor
  import mindsdb.api.mongo.functions
  from mindsdb.api.mongo.classes import Responder
  from mindsdb.api.mongo.classes.query_sql import run_sql_command
  from mindsdb.api.mongo.responders.aggregate import aggregate_to_ast
  from mindsdb.api.mongo.responders.find import find_to_ast
  from mindsdb.api.mongo.utilities.mongodb_parser import MongodbParser
  from mindsdb.integrations.libs.response import HandlerStatusResponse
  from mindsdb.utilities import log
label_desc: Use image node_id 6 for calling the Responce obj's underlying member method code with example usage: obj._result(query, request_env, mindsdb_env) and returns: result