code: def export_project_to_zip(
      zip_name: Union[str, Path],
      pipeline: Pipeline,
      train_data: InputData,
      test_data: InputData,
      opt_history: Optional[OptHistory] = None,
      log_file_name: str = "log.txt",
  ):
      """
      Convert pipeline to JSON, data to csv, compress them to zip
      archive and save to 'DEFAULT_PROJECTS_PATH/projects' with logs.
  
      :param zip_name: absolute or relative path the zip file with exported project
      :param pipeline: pipeline object to export
      :param train_data: train InputData object to export
      :param test_data: test InputData object to export
      :param opt_history: history of model optimisation to export (if available)
      :param log_file_name: name of the file with log to export
      """
  
      log = default_log(prefix="fedot.utilities.project_import_export")
      (
          absolute_folder_path,
          absolute_zip_path,
          folder_name,
          zip_name,
      ) = _prepare_paths(zip_name)
      _check_for_existing_project(
          absolute_folder_path, absolute_zip_path
      )
  
      # Converts python objects to files for compression
      pipeline_path = os.path.join(
          absolute_folder_path, "pipeline", "pipeline.json"
      )
      pipeline.save(
          pipeline_path, is_datetime_in_path=False, create_subdir=False
      )
      train_data.to_csv(absolute_folder_path.joinpath("train_data.csv"))
      test_data.to_csv(absolute_folder_path.joinpath("test_data.csv"))
      if opt_history is not None:
          opt_history.save(
              Path(absolute_folder_path, "opt_history.json")
          )
  
      _copy_log_file(log_file_name, absolute_folder_path)
  
      shutil.make_archive(
          base_name=absolute_zip_path.with_suffix(""),
          format="zip",
          root_dir=absolute_folder_path,
      )
      folder_to_delete = DEFAULT_PROJECTS_PATH.joinpath(
          absolute_folder_path.relative_to(DEFAULT_PROJECTS_PATH).parts[
              0
          ]
      )
      shutil.rmtree(folder_to_delete)
  
      log.info(
          f"The exported project was saved on the path: {absolute_zip_path}"
      )
  
file_path: FEDOT/fedot/utilities/project_import_export.py
imports: import os
  import shutil
  from pathlib import Path
  from typing import Optional, Tuple, Union
  import golem.core.paths
  from golem.core.log import LoggerAdapter, default_log
  from golem.core.optimisers.opt_history_objects.opt_history import OptHistory
  from fedot.core.data.data import InputData
  from fedot.core.pipelines.pipeline import Pipeline
label_desc: Use image node_id 1 for calling a global function with example usage: export_project_to_zip(zip_name, pipeline, train_data, test_data, opt_history, log_file_name) without return types