code: def test_forecast_with_exog():
      (
          train_source_ts,
          predict_source_ts,
          train_exog_ts,
          predict_exog_ts,
          ts_test,
      ) = synthetic_with_exogenous_ts()
  
      # Source data for lagged node
      node_lagged = PipelineNode("lagged")
      # Set window size for lagged transformation
      node_lagged.parameters = {"window_size": _WINDOW_SIZE}
      # Exogenous variable for exog node
      node_exog = PipelineNode("exog_ts")
  
      node_final = PipelineNode(
          "linear", nodes_from=[node_lagged, node_exog]
      )
      pipeline = Pipeline(node_final)
  
      pipeline.fit(
          input_data=MultiModalData(
              {"exog_ts": train_exog_ts, "lagged": train_source_ts}
          )
      )
  
      forecast = pipeline.predict(
          input_data=MultiModalData(
              {"exog_ts": predict_exog_ts, "lagged": predict_source_ts}
          )
      )
      prediction = np.ravel(np.array(forecast.predict))
  
      assert tuple(prediction) == tuple(ts_test)
  
imports: import logging
  from copy import deepcopy
  import numpy
  import pytest
  from golem.core.log import default_log
  from fedot.core.data.data import InputData
  from fedot.core.data.data_split import train_test_data_setup
  from fedot.core.data.multi_modal import MultiModalData
  from fedot.core.operations.evaluation.operation_implementations.data_operations.ts_transformations import _sparse_matrix, prepare_target, ts_to_table
  from fedot.core.optimisers.objective import MetricsObjective, PipelineObjectiveEvaluate
  from fedot.core.optimisers.objective.data_source_splitter import DataSourceSplitter
  from fedot.core.pipelines.node import PipelineNode
  from fedot.core.pipelines.pipeline import Pipeline
  from fedot.core.pipelines.pipeline_builder import PipelineBuilder
  from fedot.core.pipelines.tuning.tuner_builder import TunerBuilder
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.tasks import Task, TaskTypesEnum, TsForecastingParams
label_desc: Use image node_id 9 for calling a global function with example usage: test_forecast_with_exog() without return types