code: def get_task_processor_class_for_task(cls, task: str) -> Type:
      if task not in cls._TASK_TO_DATASET_PROCESSING_CLASS:
          supported_tasks = ", ".join(
              cls._TASK_TO_DATASET_PROCESSING_CLASS.keys()
          )
          raise KeyError(
              f"Could not find a `TaskProcessor` class for the task called {task}, supported tasks: "
              f"{supported_tasks}."
          )
      return cls._TASK_TO_DATASET_PROCESSING_CLASS[task]
  
file_path: optimum/optimum/utils/preprocessing/task_processors_manager.py
imports: from typing import TYPE_CHECKING, Any, Type
  from optimum.utils.preprocessing.image_classification import ImageClassificationProcessing
  from optimum.utils.preprocessing.question_answering import QuestionAnsweringProcessing
  from optimum.utils.preprocessing.text_classification import TextClassificationProcessing
  from optimum.utils.preprocessing.token_classification import TokenClassificationProcessing
label_desc: Use image node_id 1 for calling the TaskProcessorsManager obj's underlying member method code with example usage: obj.get_task_processor_class_for_task(cls, task) and returns: cls