code: def test_overview_figure_gap_handler_similarity(aggregator):
      """Test whether the same gap handlers as those used in the figure are used in the
      overview figure"""
      fig = FigureResampler(
          create_overview=True, default_downsampler=aggregator()
      )
  
      # create uneven data which contains gaps
      N = 20_000
      x = np.arange(N)
      for idx in np.random.randint(0, N, size=4):
          x[idx:] += np.random.randint(N / 10, N / 5)
      y = np.random.normal(size=N)
  
      fig.add_trace(go.Scatter(x=x, y=y), gap_handler=NoGapHandler())
      fig.add_trace({}, hf_x=x, hf_y=y, gap_handler=MedDiffGapHandler())
      fig.add_trace(
          {},
          hf_x=x,
          hf_y=y,
          gap_handler=MedDiffGapHandler(fill_value=42),
      )
  
      overview_fig = fig._create_overview_figure()
      assert len(overview_fig.data) == 3
      assert np.isnan(overview_fig.data[0]["y"]).sum() == 0
      assert np.isnan(overview_fig.data[1]["y"]).sum() == 4
      assert (overview_fig.data[2]["y"] == 42).sum() == 4
  
file_path: plotly-resampler/tests/test_rangeslider.py
imports: import numpy
  import plotly.graph_objects
  import pytest
  from plotly.subplots import make_subplots
  from pytest_lazyfixture import lazy_fixture
  from plotly_resampler import FigureResampler
  from plotly_resampler.aggregation import EveryNthPoint, MedDiffGapHandler, MinMaxLTTB, NoGapHandler
label_desc: Use image node_id 6 for calling a global function with example usage: test_overview_figure_gap_handler_similarity(aggregator) without return types