code: def _is_operation_contains_preset(
      operation_presets: List[str], preset: str
  ) -> bool:
      """Checking whether the operation is suitable for current preset"""
  
      if preset is None:
          # None means that best_quality preset are using so return all operations
          return True
  
      return preset in operation_presets
  
imports: import json
  import os
  from collections import defaultdict
  from dataclasses import dataclass
  from typing import Dict, List, Optional, TYPE_CHECKING, Union
  import numpy
  from golem.core.log import default_log
  from golem.utilities.data_structures import ensure_wrapped_in_sequence
  from fedot.core.constants import AUTO_PRESET_NAME, BEST_QUALITY_PRESET_NAME
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.json_evaluation import import_enums_from_str, import_strategy_from_str, read_field
  from fedot.core.repository.tasks import Task, TaskTypesEnum
label_desc: Use image node_id 4 for calling a global function with example usage: _is_operation_contains_preset(operation_presets, preset) and returns: unknown, True