code: def dataset_processing_func(
      self,
      example: Dict[str, Any],
      data_keys: Dict[str, str],
      ref_keys: Optional[List[str]] = None,
  ) -> Dict[str, Any]:
      tokenized_inputs = self.preprocessor(
          text=example[data_keys["primary"]],
          text_pair=example[data_keys["secondary"]]
          if "secondary" in data_keys
          else None,
          **self.defaults,
          **self.preprocessor_kwargs,
      )
      return tokenized_inputs
  
file_path: optimum/optimum/utils/preprocessing/text_classification.py
imports: import copy
  import logging
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Union
  from transformers import PreTrainedTokenizerBase
  from .base import TaskProcessor
label_desc: Use image node_id 2 for calling the TextClassificationProcessing obj's underlying member method code with example usage: obj.dataset_processing_func(example, data_keys, ref_keys) and returns: tokenized_inputs