code: def _process_text_image(self, df, args):
      def generate_text_image(conds, client):
          conds = conds.to_dict()
          return client.text_to_image(
              prompt=conds.get("text"),
              height=conds.get("height", 1024),
              width=conds.get("width", 1024),
          )
  
      supported_params = set(["text", "height", "width"])
  
      if "text" not in df.columns:
          raise Exception("`text` column has to be given in the query.")
  
      for col in df.columns:
          if col not in supported_params:
              raise Exception(
                  f"Unknown column {col}. Currently supported parameters for text to image - {supported_params}"
              )
  
      client = self._get_stability_client(args)
  
      return df[df.columns.intersection(supported_params)].apply(
          generate_text_image, client=client, axis=1
      )
  
file_path: mindsdb/mindsdb/integrations/handlers/stabilityai_handler/stabilityai_handler.py
imports: from typing import Optional, Dict
  import pandas
  from mindsdb.integrations.handlers.stabilityai_handler.stabilityai import StabilityAPIClient
  from mindsdb.integrations.libs.base import BaseMLEngine
  from mindsdb.utilities import log
label_desc: Use image node_id 4 for calling the StabilityAIHandler obj's underlying member method code with example usage: obj._process_text_image(df, args) and returns: df, client