code: def _copy_log_file(
      log_file_name: Optional[str], absolute_folder_path: Path
  ):
      """Copy log file to folder which will be compressed."""
  
      if log_file_name is None:
          return
  
      log_file_name = Path(log_file_name)
  
      if not log_file_name.is_absolute():
          log_file_name = DEFAULT_PATH.joinpath(log_file_name).resolve()
  
      if log_file_name.exists():
          shutil.copy2(
              log_file_name,
              absolute_folder_path.joinpath(
                  log_file_name.stem
              ).with_suffix(log_file_name.suffix),
          )
  
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 4 for calling a global function with example usage: _copy_log_file(log_file_name, absolute_folder_path) without return types