code: def test_correct_api_dataset_preprocessing():
      """Check if dataset preprocessing was performed correctly when API launch using."""
      funcs = [
          data_with_only_categorical_features,
          data_with_too_much_nans,
          data_with_spaces_and_nans_in_features,
          data_with_nans_in_target_column,
          data_with_nans_in_multi_target,
      ]
  
      # Check for all datasets
      for data_generator in funcs:
          input_data = data_generator()
          fedot_model = Fedot(problem="regression")
          pipeline = fedot_model.fit(
              input_data, predefined_model="auto"
          )
          assert pipeline is not None
  
imports: 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.data.supplementary_data import SupplementaryData
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.tasks import Task, TaskTypesEnum
  from fedot.preprocessing.data_types import TYPE_TO_ID
label_desc: Use image node_id 10 for calling a global function with example usage: test_correct_api_dataset_preprocessing() without return types