code: def convert_to_multivariate_model(
      sklearn_model, train_data: InputData
  ):
      """The function returns an iterator for multiple target for those models for
      which such a function is not initially provided
  
      Args:
          sklearn_model: :obj:`Sklearn model` to train
          train_data: data used for model training
      Returns:
          wrapped :obj:`Sklearn model`
      """
  
      if train_data.task.task_type == TaskTypesEnum.classification:
          multiout_func = MultiOutputClassifier
      elif train_data.task.task_type in [
          TaskTypesEnum.regression,
          TaskTypesEnum.ts_forecasting,
      ]:
          multiout_func = MultiOutputRegressor
      else:
          raise ValueError(
              f"For task type '{train_data.task.task_type}' MultiOutput wrapper is not supported"
          )
  
      # Apply MultiOutput
      sklearn_model = multiout_func(sklearn_model)
      sklearn_model.fit(train_data.features, train_data.target)
      return sklearn_model
  
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 1 for calling a global function with example usage: convert_to_multivariate_model(sklearn_model, train_data) and returns: sklearn_model