code: def get_mdb_write_tool(executor) -> Callable:
      def mdb_write_call(query: str) -> str:
          try:
              query = query.strip("`")
              ast_query = parse_sql(query.strip("`"), dialect="mindsdb")
              if isinstance(ast_query, Insert):
                  _ = executor.execute_command(ast_query)
                  return "mindsdb write tool executed successfully"
          except Exception as e:
              return f"mindsdb write tool failed with error:\n{str(e)}"
  
      return mdb_write_call
  
file_path: mindsdb/mindsdb/integrations/handlers/langchain_handler/tools.py
imports: import tiktoken
  from typing import Callable
  from mindsdb_sql import parse_sql, Insert
  from langchain.utilities import GoogleSerperAPIWrapper
  from langchain.prompts import PromptTemplate
  from langchain.agents import load_tools, Tool
  from langchain.chains.llm import LLMChain
  from langchain.text_splitter import CharacterTextSplitter
  from langchain.chains.combine_documents.stuff import StuffDocumentsChain
  from langchain.chains import ReduceDocumentsChain, MapReduceDocumentsChain
  from mindsdb.interfaces.skills.skill_tool import make_tools_from_skill
label_desc: Use image node_id 3 for calling a global function with example usage: get_mdb_write_tool(executor) and returns: mdb_write_call, str, str, str