code: def test_get_intervals_should_produce_intervals_contained_in_inner_series_bins(
      number_of_intervals: int,
      min_interval: int,
      inner_series_length: int,
      number_of_series: int,
  ):
      """Tests get_intervals should produce intervals contained in inner series bins."""
      # given
      given_n_intervals = number_of_intervals
      given_min_interval = min_interval
      given_series_length = inner_series_length * number_of_series
      given_rng: RandomState = RandomState(42)
      given_inner_series_length: Optional[int] = inner_series_length
  
      # When
      intervals = _get_intervals(
          n_intervals=given_n_intervals,
          min_interval=given_min_interval,
          series_length=given_series_length,
          rng=given_rng,
          inner_series_length=given_inner_series_length,
      )
  
      # Then
      assert all(
          intervals[:, 0]
          <= (intervals[:, 0] // given_inner_series_length + 1)
          * given_inner_series_length
      )
  
file_path: sktime/sktime/series_as_features/base/estimators/interval_based/tests/test_tsf.py
imports: from typing import Optional
  import numpy
  import pytest
  from numpy.random import RandomState
  from sktime.series_as_features.base.estimators.interval_based._tsf import _get_intervals
label_desc: Use image node_id 6 for calling a global function with example usage: test_get_intervals_should_produce_intervals_contained_in_inner_series_bins(number_of_intervals, min_interval, inner_series_length, number_of_series) without return types