class_docstr: Integration with the Hugging Face Inference API.
code: def create_validation(target, args=None, **kwargs):
      args = args["using"]
  
      if "input_column" not in args:
          raise InsufficientParametersException(
              "input_column has to be specified"
          )
  
      if "model_name" not in args:
          # detect model by task
          task = args.get("task")
          if task is None:
              raise InsufficientParametersException(
                  "model_name or task have to be specified"
              )
  
          args["model_name"] = None
      else:
          # detect task by model
          hf_api = HfApi()
          metadata = hf_api.model_info(args["model_name"])
  
          if "task" not in args:
              args["task"] = metadata.pipeline_tag
  
      if args["task"] not in get_in_df_supported_tasks():
          raise UnsupportedTaskException(
              f'The task {args["task"]} is not supported by the Hugging Face Inference API engine.'
          )
  
      if args["task"] == "zero-shot-classification":
          if "candidate_labels" not in args:
              raise Exception(
                  '"candidate_labels" is required for zero-shot-classification'
              )
  
      if args["task"] == "sentence-similarity":
          if "input_column2" not in args:
              raise InsufficientParametersException(
                  "input_column2 has to be specified"
              )
  
file_path: mindsdb/mindsdb/integrations/handlers/huggingface_api_handler/huggingface_api_handler.py
imports: import json
  import os
  from typing import Optional, Dict
  import pandas
  from huggingface_hub import HfApi
  from huggingface_hub import hf_hub_download
  from hugging_py_face import NLP, ComputerVision, AudioProcessing, get_in_df_supported_tasks
  from mindsdb.utilities.config import Config
  from mindsdb.integrations.libs.base import BaseMLEngine
  from .exceptions import UnsupportedTaskException, InsufficientParametersException
label_desc: Use image node_id 1 for calling the HuggingFaceInferenceAPIHandler obj's underlying member method code with example usage: obj.create_validation(target, args) without return types