code: def test_invalid_row_indices_subplots(n_cols):
      with pytest.raises(AssertionError):
          FigureResampler(
              make_subplots(
                  rows=3, cols=n_cols, shared_xaxes="columns"
              ),
              create_overview=True,
              # row index 3 is too high (starts at 0, so [0, 1, 2])
              overview_row_idxs=[3 for _ in range(n_cols)],
          )
  
      with pytest.raises(AssertionError):
          FigureResampler(
              make_subplots(
                  rows=3, cols=n_cols, shared_xaxes="columns"
              ),
              create_overview=True,
              # n_cols -1 causes the overview to have one subplot column less
              overview_row_idxs=[0 for _ in range(n_cols - 1)],
          )
  
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 3 for calling a global function with example usage: test_invalid_row_indices_subplots(n_cols) without return types