class_docstr: Class which contains abstract methods for data preprocessing.
class_docstr_tok: ["Class","which","contains","abstract","methods","for","data","preprocessing","."]
docstr: Encodes categorical features to numerical using LabelEncoder.
  In addition, saves encoders to use later for data prediction.
  
  Args:
      data: data to transform
      source_name: name of data source node
docstr_tok: ["Encodes","categorical","features","to","numerical","using","LabelEncoder",".","In","addition",",","saves","encoders","to","use","later","for","data","prediction",".","Args",":","data",":","data","to","transform","source_name",":","name","of","data","source","node"]
code: def label_encoding_for_fit(
      self, data: InputData, source_name: str = DEFAULT_SOURCE_NAME
  ):
      """
      Encodes categorical features to numerical using LabelEncoder.
      In addition, saves encoders to use later for data prediction.
  
      Args:
          data: data to transform
          source_name: name of data source node
      """
      raise AbstractMethodNotImplementError
  
imports: from abc import ABC, abstractmethod
  from typing import Dict, Union, TYPE_CHECKING
  import numpy
  from sklearn.preprocessing import LabelEncoder
  from fedot.core.data.data import InputData, OutputData
  from fedot.core.data.multi_modal import MultiModalData
  from fedot.core.operations.evaluation.operation_implementations.data_operations.categorical_encoders import LabelEncodingImplementation, OneHotEncodingImplementation
  from fedot.core.operations.evaluation.operation_implementations.data_operations.sklearn_transformations import ImputationImplementation
  from fedot.preprocessing.categorical import BinaryCategoricalPreprocessor
  from fedot.preprocessing.data_types import TableTypesCorrector
  from fedot.preprocessing.structure import DEFAULT_SOURCE_NAME
  from fedot.utilities.custom_errors import AbstractMethodNotImplementError
label_desc: Use image node_id 6 for calling the BasePreprocessor obj's underlying member method code with example usage: obj.label_encoding_for_fit(data, source_name) without return types