code: def test_tuner_correctly_work_with_window_size_selector():
      ts = get_timeseries(length=1000, random=True)
  
      autotuned_pipeline = (
          PipelineBuilder().add_sequence("lagged", "ridge").build()
      )
      autotuned_pipeline.fit(ts)
      autotuned_window = autotuned_pipeline.nodes[-1].parameters[
          "window_size"
      ]
  
      # prepare factory to get all records
      records = prepare_logging()
  
      tuner_tuned_pipeline = (
          PipelineBuilder().add_sequence("lagged", "ridge").build()
      )
      tuner = (
          TunerBuilder(task=ts.task).with_iterations(10).build(data=ts)
      )
      tuned_pipeline = tuner.tune(
          graph=tuner_tuned_pipeline, show_progress=False
      )
      tuner_tuned_window = tuned_pipeline.nodes[-1].parameters[
          "window_size"
      ]
  
      assert autotuned_window != tuner_tuned_window
      # check that WindowSizeSelector runs twice due to tuner graph copying in initialization
      assert sum(check_window_size_selector_logging(records)) == 2
  
imports: import logging
  from copy import deepcopy
  import numpy
  import pytest
  from golem.core.log import default_log
  from fedot.core.data.data import InputData
  from fedot.core.data.data_split import train_test_data_setup
  from fedot.core.data.multi_modal import MultiModalData
  from fedot.core.operations.evaluation.operation_implementations.data_operations.ts_transformations import _sparse_matrix, prepare_target, ts_to_table
  from fedot.core.optimisers.objective import MetricsObjective, PipelineObjectiveEvaluate
  from fedot.core.optimisers.objective.data_source_splitter import DataSourceSplitter
  from fedot.core.pipelines.node import PipelineNode
  from fedot.core.pipelines.pipeline import Pipeline
  from fedot.core.pipelines.pipeline_builder import PipelineBuilder
  from fedot.core.pipelines.tuning.tuner_builder import TunerBuilder
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.tasks import Task, TaskTypesEnum, TsForecastingParams
label_desc: Use image node_id 16 for calling a global function with example usage: test_tuner_correctly_work_with_window_size_selector() without return types