class_docstr: Class for presets processing. Preset is a set of operations (data operations
  and models), which will be used during pipeline structure search
class_docstr_tok: ["Class","for","presets","processing",".","Preset","is","a","set","of","operations","(","data","operations","and","models",")",",","which","will","be","used","during","pipeline","structure","search"]
docstr: Return composer parameters dictionary with appropriate operations
  based on defined preset
docstr_tok: ["Return","composer","parameters","dictionary","with","appropriate","operations","based","on","defined","preset"]
code: def composer_params_based_on_preset(
      self, api_params: dict, data_type: Optional[DataTypesEnum] = None
  ) -> dict:
      """Return composer parameters dictionary with appropriate operations
      based on defined preset
      """
      updated_params = copy(api_params)
  
      if self.preset_name is None and "preset" in updated_params:
          self.preset_name = updated_params["preset"]
  
      if (
          self.preset_name is not None
          and api_params.get("available_operations") is None
      ):
          available_operations = self.filter_operations_by_preset(
              data_type
          )
          updated_params["available_operations"] = available_operations
  
      return updated_params
  
file_path: FEDOT/fedot/api/api_utils/presets.py
imports: from copy import copy
  from typing import Optional
  from fedot.api.time import ApiTime
  from fedot.core.constants import BEST_QUALITY_PRESET_NAME, FAST_TRAIN_PRESET_NAME, AUTO_PRESET_NAME
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.operation_types_repository import OperationTypesRepository, get_operations_for_task
  from fedot.core.repository.tasks import Task
label_desc: Use image node_id 2 for calling the OperationsPreset obj's underlying member method code with example usage: obj.composer_params_based_on_preset(api_params, data_type) and returns: updated_params