code: def extract_llm_params(args):
      """extract llm params from input query args"""
  
      llm_params = {}
      for param in WriterLLMParameters.__fields__:
          if param in args:
              llm_params[param] = args.pop(param)
  
      args["llm_params"] = llm_params
  
      return args
  
file_path: mindsdb/mindsdb/integrations/handlers/writer_handler/writer_handler.py
imports: from typing import Dict, Optional
  import pandas
  from mindsdb.integrations.handlers.writer_handler.evaluate import WriterEvaluator
  from mindsdb.integrations.handlers.writer_handler.ingest import WriterIngestor
  from mindsdb.integrations.handlers.writer_handler.rag import QuestionAnswerer
  from mindsdb.integrations.handlers.writer_handler.settings import DEFAULT_EMBEDDINGS_MODEL, EVAL_COLUMN_NAMES, WriterHandlerParameters, WriterLLMParameters
  from mindsdb.integrations.libs.base import BaseMLEngine
  from mindsdb.integrations.utilities.datasets.dataset import load_dataset, validate_dataframe
  from mindsdb.utilities import log
label_desc: Use image node_id 1 for calling a global function with example usage: extract_llm_params(args) and returns: args