code: def test_valid_row_indices_subplots(n_cols):
      fig = FigureResampler(
          make_subplots(rows=3, cols=n_cols, shared_xaxes="columns"),
          create_overview=True,
          overview_row_idxs=None,
      )
      fig._create_overview_figure()
      # by default, the overview row indices should be the first row of each subplot col
      assert fig._overview_row_idxs == [0] * n_cols
  
      # this should not crash
      fig = FigureResampler(
          make_subplots(rows=3, cols=n_cols, shared_xaxes="columns"),
          create_overview=True,
          overview_row_idxs=[
              np.random.randint(0, 2) for _ in range(n_cols)
          ],
      )
      fig._create_overview_figure()
  
      # By adding None values, we can skip certain subplot columns
      row_idxs = [np.random.randint(0, 2) for _ in range(n_cols)]
      for _ in range(np.random.randint(0, n_cols)):
          row_idxs[np.random.randint(0, n_cols)] = None
      # print(row_idxs)
      fig = FigureResampler(
          make_subplots(rows=3, cols=n_cols, shared_xaxes="columns"),
          create_overview=True,
          overview_row_idxs=row_idxs,
      )
      fig._create_overview_figure()
  
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 2 for calling a global function with example usage: test_valid_row_indices_subplots(n_cols) without return types