code: def has_no_conflicts_after_class_decompose(pipeline: Pipeline):
      """
      After the class_decompose operation, a regression model is required.
      Validation perform only for classification pipelines.
      """
      error_message = f"{ERROR_PREFIX} After classification decompose it is required to use regression model"
      pipeline_operations = [
          node.operation.operation_type for node in pipeline.nodes
      ]
      if "class_decompose" not in pipeline_operations:
          return True
  
      regression_operations = get_operations_for_task(
          task=Task(TaskTypesEnum.regression), mode="all"
      )
  
      # Check for correct descendants after classification decompose
      for node in pipeline.nodes:
          parent_operations = [
              node.operation.operation_type for node in node.nodes_from
          ]
          if "class_decompose" in parent_operations:
              # Check is this model for regression task
              if (
                  node.operation.operation_type
                  not in regression_operations
              ):
                  raise ValueError(error_message)
  
      return True
  
imports: from typing import Optional
  from fedot.core.operations.atomized_model import AtomizedModel
  from fedot.core.operations.model import Model
  from fedot.core.pipelines.node import PipelineNode
  from fedot.core.pipelines.pipeline import Pipeline
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.operation_types_repository import OperationTypesRepository, get_operations_for_task, atomized_model_type
  from fedot.core.repository.tasks import Task, TaskTypesEnum
label_desc: Use image node_id 15 for calling a global function with example usage: has_no_conflicts_after_class_decompose(pipeline) and returns: True, True