code: def check_fedots(
      fedots: List[Fedot], test_data: InputData, are_same: bool = True
  ) -> None:
      """Check fedots are equal or not equal with assertion
      :param fedots: list with Fedot instances
      :param test_data: data for testing
      :param are_same: if True then equivalence check, else nonequivalence check
      :return: None"""
      for fedot in fedots[1:]:
          assert are_same == np.allclose(
              fedots[0].history.all_historical_fitness,
              fedot.history.all_historical_fitness,
          )
          assert are_same == np.allclose(
              fedots[0].forecast(test_data), fedot.forecast(test_data)
          )
  
file_path: FEDOT/test/integration/real_applications/test_model_result_reproducing.py
imports: from typing import List
  import numpy
  from fedot import Fedot
  from fedot.core.data.data import InputData
  from fedot.core.data.data_split import train_test_data_setup
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.tasks import Task, TaskTypesEnum, TsForecastingParams
label_desc: Use image node_id 3 for calling a global function with example usage: check_fedots(fedots, test_data, are_same) without return types