class_docstr: Class which contains abstract methods for data preprocessing.
class_docstr_tok: ["Class","which","contains","abstract","methods","for","data","preprocessing","."]
docstr: Marks provided ``data`` as preprocessed with ``type`` method,
      so it won't be preprocessed in further steps of an algorithm.
  
  Args:
      data: data to be marked
      is_obligatory: was the data obligatorily or optionally preprocessed
docstr_tok: ["Marks","provided","``","data","``","as","preprocessed","with","``","type","``","method",",","so","it","wo","n't","be","preprocessed","in","further","steps","of","an","algorithm",".","Args",":","data",":","data","to","be","marked","is_obligatory",":","was","the","data","obligatorily","or","optionally","preprocessed"]
code: def mark_as_preprocessed(
      data: Union[InputData, MultiModalData],
      *,
      is_obligatory: bool = True,
  ):
      """
      Marks provided ``data`` as preprocessed with ``type`` method,
          so it won't be preprocessed in further steps of an algorithm.
  
      Args:
          data: data to be marked
          is_obligatory: was the data obligatorily or optionally preprocessed
      """
      values = [data] if isinstance(data, InputData) else data.values()
      for input_data in values:
          if is_obligatory:
              input_data.supplementary_data.obligatorily_preprocessed = (
                  True
              )
          else:
              input_data.supplementary_data.optionally_preprocessed = (
                  True
              )
  
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 13 for calling the BasePreprocessor obj's underlying member method code with example usage: obj.mark_as_preprocessed(data) without return types