code: def run_fedot(
      parameters, main_params, fit_params, save_predictions=True
  ):
      """Function for run prediction on fedot"""
      model = Fedot(**main_params)
      print("\nFitting start...")
      model.fit(**fit_params)
      print("\nPrediction start...")
      prediction = model.predict(
          features=getattr(parameters, "test"),
          in_sample=False,
          save_predictions=save_predictions,
      )
      print(
          f"\nPrediction saved at {Path.cwd().joinpath('predictions.csv')}"
      )
      return prediction
  
file_path: FEDOT/fedot/api/fedot_cli.py
imports: import argparse
  from argparse import RawTextHelpFormatter
  from pathlib import Path
  from fedot import Fedot
  from fedot.core.repository.tasks import TsForecastingParams
label_desc: Use image node_id 5 for calling a global function with example usage: run_fedot(parameters, main_params, fit_params, save_predictions) and returns: prediction