docstr: This method is used for operation training with the data provided
  
  :param InputData train_data: data used for operation training
  :return: trained model
docstr_tok: ["This","method","is","used","for","operation","training","with","the","data","provided",":","param","InputData","train_data",":","data","used","for","operation","training",":","return",":","trained","model"]
code: def fit(self, train_data: InputData):
      """
      This method is used for operation training with the data provided
  
      :param InputData train_data: data used for operation training
      :return: trained model
      """
      with ImplementationRandomStateHandler(
          implementation=self.text_processor
      ):
          self.text_processor.fit(train_data)
      return self.text_processor
  
imports: import warnings
  from typing import Optional
  import numpy
  from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer
  from fedot.core.data.data import InputData, OutputData
  from fedot.core.operations.evaluation.evaluation_interfaces import EvaluationStrategy
  from fedot.core.operations.evaluation.operation_implementations.data_operations.text_preprocessing import TextCleanImplementation
  from fedot.core.operations.evaluation.operation_implementations.data_operations.text_pretrained import PretrainedEmbeddingsImplementation
  from fedot.core.operations.operation_parameters import OperationParameters
  from fedot.utilities.random import ImplementationRandomStateHandler
label_desc: Use image node_id 2 for calling the FedotTextPreprocessingStrategy obj's underlying member method code with example usage: obj.fit(train_data) and returns: self