code: def _get_pipeline(
      self, use_input_preprocessing: bool = True
  ) -> Pipeline:
      if isinstance(self.predefined_model, Pipeline):
          pipelines = self.predefined_model
      elif self.predefined_model == "auto":
          # Generate initial assumption automatically
          pipelines = (
              AssumptionsBuilder.get(self.data)
              .from_operations()
              .build(use_input_preprocessing=use_input_preprocessing)[0]
          )
      elif isinstance(self.predefined_model, str):
          model = PipelineNode(self.predefined_model)
          pipelines = Pipeline(
              model, use_input_preprocessing=use_input_preprocessing
          )
      else:
          raise ValueError(
              f"{type(self.predefined_model)} is not supported as Fedot model"
          )
  
      verify_pipeline(
          pipelines,
          task_type=self.data.task.task_type,
          raise_on_failure=True,
      )
  
      return pipelines
  
file_path: FEDOT/fedot/api/api_utils/predefined_model.py
imports: import traceback
  from typing import Union
  from golem.core.log import LoggerAdapter
  from fedot.api.api_utils.assumptions.assumptions_builder import AssumptionsBuilder
  from fedot.core.data.data import InputData
  from fedot.core.pipelines.node import PipelineNode
  from fedot.core.pipelines.pipeline import Pipeline
  from fedot.core.pipelines.verification import verify_pipeline
label_desc: Use image node_id 2 for calling the PredefinedModel obj's underlying member method code with example usage: obj._get_pipeline(use_input_preprocessing) and returns: pipelines