class_docstr: Base class to define the evaluation strategy of Operation object:
  the certain sklearn or any other operation with fit/predict methods.
  
  Args:
      operation_type: ``str`` of the operation defined in operation repository
      params: hyperparameters to fit the operation with
docstr: Method convert prediction into :obj:`OutputData` if it is not this type yet
  
  Args:
      prediction: output from model implementation
      predict_data: :obj:`InputData` used for prediction
      output_data_type: :obj:`DataTypesEnum` for output
  
  Returns: prediction as :obj:`OutputData`
docstr_tok: ["Method","convert","prediction","into",":","obj",":","`","OutputData","`","if","it","is","not","this","type","yet","Args",":","prediction",":","output","from","model","implementation","predict_data",":",":","obj",":","`","InputData","`","used","for","prediction","output_data_type",":",":","obj",":","`","DataTypesEnum","`","for","output","Returns",":","prediction","as",":","obj",":","`","OutputData","`"]
code: def _convert_to_output(
      prediction,
      predict_data: InputData,
      output_data_type: DataTypesEnum = DataTypesEnum.table,
  ) -> OutputData:
      """Method convert prediction into :obj:`OutputData` if it is not this type yet
  
      Args:
          prediction: output from model implementation
          predict_data: :obj:`InputData` used for prediction
          output_data_type: :obj:`DataTypesEnum` for output
  
      Returns: prediction as :obj:`OutputData`
      """
  
      if not isinstance(prediction, OutputData):
          # Wrap prediction as OutputData
          converted = OutputData(
              idx=predict_data.idx,
              features=predict_data.features,
              predict=prediction,
              task=predict_data.task,
              target=predict_data.target,
              data_type=output_data_type,
              supplementary_data=predict_data.supplementary_data,
          )
      else:
          converted = prediction
  
      return converted
  
imports: import warnings
  from abc import abstractmethod
  from typing import Optional
  import numpy
  from golem.core.log import default_log
  from lightgbm.sklearn import LGBMClassifier, LGBMRegressor
  from sklearn.cluster import KMeans
  from sklearn.ensemble import AdaBoostRegressor, ExtraTreesRegressor, GradientBoostingRegressor, RandomForestClassifier, RandomForestRegressor
  from sklearn.linear_model import Lasso, LinearRegression, LogisticRegression, Ridge, SGDRegressor
  from sklearn.multioutput import MultiOutputClassifier, MultiOutputRegressor
  from sklearn.naive_bayes import BernoulliNB, MultinomialNB
  from sklearn.neural_network import MLPClassifier
  from sklearn.svm import LinearSVR
  from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor
  from xgboost import XGBClassifier, XGBRegressor
  from fedot.core.data.data import InputData, OutputData
  from fedot.core.operations.operation_parameters import OperationParameters
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.operation_types_repository import OperationTypesRepository, get_operation_type_from_id
  from fedot.core.repository.tasks import TaskTypesEnum
  from fedot.utilities.custom_errors import AbstractMethodNotImplementError
  from fedot.utilities.random import ImplementationRandomStateHandler
label_desc: Use image node_id 8 for calling the EvaluationStrategy obj's underlying member method code with example usage: obj._convert_to_output(prediction, predict_data, output_data_type) and returns: converted