code: def test_correctly_sets_default_params(input_params):
      params_repository = get_api_params_repository()
      output_params = params_repository.check_and_set_default_params(
          input_params
      )
      default_params = params_repository.default_params_for_task(
          params_repository.task_type
      )
      assert output_params.keys() <= default_params.keys()
      for k, v in default_params.items():
          if k not in input_params and v is not None:
              assert output_params[k] == default_params[k]
          elif k in input_params:
              assert output_params[k] == input_params[k]
  
file_path: FEDOT/test/unit/api/test_api_params.py
imports: import dataclasses
  from typing import Optional
  import pytest
  from golem.core.optimisers.genetic.gp_optimizer import EvoGraphOptimizer
  from golem.core.optimisers.genetic.gp_params import GPAlgorithmParameters
  from golem.core.optimisers.genetic.operators.inheritance import GeneticSchemeTypesEnum
  from fedot.api.api_utils.api_params_repository import ApiParamsRepository
  from fedot.core.constants import AUTO_PRESET_NAME
  from fedot.core.pipelines.pipeline_builder import PipelineBuilder
  from fedot.core.pipelines.pipeline_composer_requirements import PipelineComposerRequirements
  from fedot.core.repository.metrics_repository import RegressionMetricsEnum
  from fedot.core.repository.tasks import TaskTypesEnum
label_desc: Use image node_id 2 for calling a global function with example usage: test_correctly_sets_default_params(input_params) without return types