code: def ts_complex_dtreg_pipeline(first_node="lagged"):
      """
      Return pipeline with the following structure:
  
      .. image:: img_ts_pipelines/ts_complex_dtreg_pipeline.png
        :width: 55%
  
      Where dtreg = tree regressor, rfr - random forest regressor
      """
      pip_builder = (
          PipelineBuilder()
          .add_sequence(first_node, "dtreg", branch_idx=0)
          .add_sequence(first_node, "dtreg", branch_idx=1)
          .join_branches("rfr")
      )
  
      pipeline = pip_builder.build()
      return pipeline
  
file_path: FEDOT/examples/simple/time_series_forecasting/ts_pipelines.py
imports: from fedot.core.pipelines.pipeline_builder import PipelineBuilder
label_desc: Use image node_id 9 for calling a global function with example usage: ts_complex_dtreg_pipeline(first_node) and returns: pipeline