code: def test_coarse_figure_aggregation(
      figure_class, series, default_n_samples
  ):
      """Test whether the coarse figure aggregation works as expected"""
      # Create a figure with a scatter plot
      fig = FigureResampler(
          figure_class(),
          create_overview=True,
          default_n_shown_samples=default_n_samples,
      )
      fig.add_trace(go.Scatter(x=series.index, y=series))
      fig.add_trace({}, hf_x=series.index, hf_y=series)
  
      overview_fig = fig._create_overview_figure()
      for trace in overview_fig.data:
          assert len(trace.y) == 3 * default_n_samples
  
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 5 for calling a global function with example usage: test_coarse_figure_aggregation(figure_class, series, default_n_samples) without return types