code: def clip_dataframe(df, forecast_horizon, history_size):
      # Take last n elements from dataframe to train
      dataframe_cutted = df.tail(history_size + forecast_horizon)
  
      return dataframe_cutted
  
file_path: FEDOT/examples/advanced/remote_execution/ts_composer_with_integration.py
imports: from fedot import Fedot
  from fedot.core.data.multi_modal import MultiModalData
  from fedot.core.utils import fedot_project_root
  from fedot.core.utils import set_random_seed
  from fedot.remote.infrastructure.clients.test_client import TestClient
  from fedot.remote.remote_evaluator import RemoteEvaluator, RemoteTaskParams
label_desc: Use image node_id 1 for calling a global function with example usage: clip_dataframe(df, forecast_horizon, history_size) and returns: dataframe_cutted