code: def separate_argparse_to_fedot(parameters):
      """Function for separating argparse parameters on fedot fit/predict/composer"""
      main_params = {}
      fit_params = {}
      for arg in vars(parameters):
          if arg in main_params_names:
              main_params[keys_names[arg]] = getattr(parameters, arg)
          if arg in fit_params_names:
              fit_params[keys_names[arg]] = getattr(parameters, arg)
  
      if (
          main_params["problem"] == "ts_forecasting"
          and getattr(parameters, "for_len") is not None
      ):
          main_params["task_params"] = TsForecastingParams(
              forecast_length=int(getattr(parameters, "for_len"))
          )
      elif (
          main_params["problem"] == "ts_forecasting"
          and getattr(parameters, "for_len") is None
      ):
          raise ValueError(
              "Forecast length (for_len) is necessary parameter for ts_forecasting problem"
          )
  
      if main_params["with_tuning"] == "1":
          main_params["with_tuning"] = True
      else:
          main_params["with_tuning"] = False
      return main_params, fit_params
  
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 3 for calling a global function with example usage: separate_argparse_to_fedot(parameters) and returns: main_params,  fit_params