code: def create_validation(target, args=None, **kwargs):
      if "using" not in args:
          raise Exception(
              "palm engine requires a USING clause! Refer to its documentation for more details."
          )
      else:
          args = args["using"]
  
      args_model = PalmHandlerArgs(**args)
  
      if (
          len(
              set(args.keys())
              & {"question_column", "prompt_template", "prompt"}
          )
          == 0
      ):
          raise Exception(
              "One of `question_column` or `prompt_template` is required for this engine."
          )
  
      # TODO: add example_column for conversational mode
      keys_collection = [
          ["prompt_template"],
          ["question_column", "context_column"],
          ["prompt", "user_column", "assistant_column"],
      ]
      for keys in keys_collection:
          if keys[0] in args and any(
              x[0] in args for x in keys_collection if x != keys
          ):
              raise Exception(
                  textwrap.dedent(
                      """\
                      Please provide one of
                          1) a `prompt_template`
                          2) a `question_column` and an optional `context_column`
                          3) a `prompt' and 'user_column' and 'assistant_column`
                  """
                  )
              )
  
file_path: mindsdb/mindsdb/integrations/handlers/palm_handler/palm_handler.py
imports: import textwrap
  from pydantic import BaseModel, Extra
  import google.generativeai
  import numpy
  import pandas
  from mindsdb.utilities.hooks import before_palm_query, after_palm_query
  from mindsdb.utilities import log
  from mindsdb.integrations.libs.base import BaseMLEngine
  from mindsdb.integrations.utilities.handler_utils import get_api_key
  from mindsdb.integrations.libs.llm_utils import get_completed_prompts
label_desc: Use image node_id 2 for calling the PalmHandler obj's underlying member method code with example usage: obj.create_validation(target, args) without return types