code: def classification_pipeline_with_balancing(custom_params=None):
      """
      Returns pipeline with the following structure:
  
      .. image:: img_classification_pipelines/class_with_balancing.png
        :width: 55%
  
      Where resample - algorithm for balancing dataset, logit - logistic_regression
  
      :param custom_params:  custom parameters for resample node
      """
      node_resample = PipelineNode(operation_type="resample")
  
      if custom_params is not None:
          node_resample.parameters = custom_params
  
      graph = PipelineNode(
          operation_type="logit", nodes_from=[node_resample]
      )
  
      return Pipeline(graph)
  
file_path: FEDOT/examples/simple/classification/classification_pipelines.py
imports: from fedot.core.pipelines.node import PipelineNode
  from fedot.core.pipelines.pipeline import Pipeline
label_desc: Use image node_id 2 for calling a global function with example usage: classification_pipeline_with_balancing(custom_params) and returns: Pipeline