code: def _calculate_intervals(
      last_index_pre_history, amount_of_iterations, scope_len
  ):
      """Function calculate
  
      :param last_index_pre_history: last id of the known part of time series
      :param amount_of_iterations: amount of steps for time series forecasting
      :param scope_len: amount of elements in every time series forecasting step
      :return intervals: ids of finish of every step in time series
      """
      intervals = []
      current_border = last_index_pre_history
      for i in range(0, amount_of_iterations):
          current_border = current_border + scope_len
          intervals.append(current_border)
  
      return intervals
  
file_path: FEDOT/fedot/core/pipelines/ts_wrappers.py
imports: import math
  from copy import copy
  from typing import Union, Optional
  import numpy
  from fedot.core.data.data import InputData, OutputData
  from fedot.core.data.multi_modal import MultiModalData
  from fedot.core.operations.evaluation.operation_implementations.data_operations.ts_transformations import ts_to_table
  from fedot.core.pipelines.pipeline import Pipeline
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.tasks import TaskTypesEnum
label_desc: Use image node_id 7 for calling a global function with example usage: _calculate_intervals(last_index_pre_history, amount_of_iterations, scope_len) and returns: intervals