code: def impl_test_assumptions_builder_suitable_available_operations(
      task, train_input, data_type=None
  ):
      """Check that available operations, when they are suitable for the task,
      are taken into account by AssumptionsBuilder. This is implementation part of the test.
      """
      if not data_type:
          data_type = train_input.data_type
      available_operations = get_suitable_operations_for_task(
          task.task_type, data_type
      )
      assert available_operations
  
      default_builder = AssumptionsBuilder.get(train_input)
      baseline_pipeline = default_builder.build()[0]
      baseline_operation = (
          baseline_pipeline.root_node.operation.operation_type
      )
      available_operations.remove(baseline_operation)
  
      checked_builder = AssumptionsBuilder.get(
          train_input
      ).from_operations(available_operations)
      checked_pipeline = checked_builder.build()[0]
  
      # check that results differ
      assert not graphs_same(baseline_pipeline, checked_pipeline)
      # check expected structure of pipeline
      assert pipeline_contains_any(
          checked_pipeline, *available_operations
      )
  
imports: from functools import partial
  from typing import Union
  import numpy
  from fedot.api.api_utils.assumptions.assumptions_builder import UniModalAssumptionsBuilder, MultiModalAssumptionsBuilder, AssumptionsBuilder
  from fedot.api.api_utils.assumptions.preprocessing_builder import PreprocessingBuilder
  from fedot.core.data.data import InputData
  from fedot.core.data.multi_modal import MultiModalData
  from fedot.core.pipelines.node import PipelineNode
  from fedot.core.pipelines.pipeline import Pipeline
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.operation_types_repository import OperationTypesRepository
  from fedot.core.repository.tasks import TaskTypesEnum, Task, TsForecastingParams
  from fedot.preprocessing.data_types import TableTypesCorrector
  from fedot.preprocessing.preprocessing import DataPreprocessor
  from test.integration.api.test_main_api import get_dataset
  from test.unit.dag.test_graph_utils import graphs_same
  from test.unit.data_operations.test_data_operations_implementations import get_time_series, get_small_regression_dataset
  from test.unit.multimodal.data_generators import get_single_task_multimodal_tabular_data
label_desc: Use image node_id 12 for calling a global function with example usage: impl_test_assumptions_builder_suitable_available_operations(task, train_input, data_type) without return types