code: def test_generate_regions_ts_no_overlap(window):
      n_voxels = 50
      n_regions = 10
  
      regions = generate_regions_ts(
          n_voxels, n_regions, overlap=0, window=window
      )
  
      assert regions.shape == (n_regions, n_voxels)
      # check no overlap
      np.testing.assert_array_less(
          (regions > 0).sum(axis=0) - 0.1, np.ones(regions.shape[1])
      )
      # check: a region everywhere
      np.testing.assert_array_less(
          np.zeros(regions.shape[1]), (regions > 0).sum(axis=0)
      )
  
imports: from __future__ import annotations
  import json
  import numpy
  import pytest
  from nilearn._utils.data_gen import add_metadata_to_bids_dataset, create_fake_bids_dataset, generate_fake_fmri, generate_labeled_regions, generate_maps, generate_regions_ts
  from nilearn.image import get_data
label_desc: Use image node_id 15 for calling a global function with example usage: test_generate_regions_ts_no_overlap(window) without return types