code: def get_data_analyser_with_specific_params(
      max_size=18, max_cat_cardinality=5
  ):
      """Create a DataAnalyser object with small max dataset size and small max cardinality for categorical features"""
      safety_module = InputAnalyser(safe_mode=True)
      preprocessor = ApiDataProcessor(
          Task(TaskTypesEnum.classification)
      )
      safety_module.max_size = max_size
      safety_module.max_cat_cardinality = max_cat_cardinality
      return safety_module, preprocessor
  
file_path: FEDOT/test/unit/api/test_api_safety.py
imports: import numpy
  from fedot.api.api_utils.api_data import ApiDataProcessor
  from fedot.api.api_utils.input_analyser import InputAnalyser
  from fedot import Fedot
  from fedot.core.data.data import InputData
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.tasks import TaskTypesEnum, Task
  from fedot.preprocessing.preprocessing import DataPreprocessor
  from test.integration.api.test_main_api import TESTS_MAIN_API_DEFAULT_PARAMS
label_desc: Use image node_id 1 for calling a global function with example usage: get_data_analyser_with_specific_params(max_size, max_cat_cardinality) and returns: safety_module,  preprocessor