code: def test_generate_labeled_regions():
      """Minimal testing of generate_labeled_regions."""
      shape = (3, 4, 5)
      n_regions = 10
      regions = generate_labeled_regions(shape, n_regions)
      assert regions.shape == shape
      assert len(np.unique(get_data(regions))) == n_regions + 1
  
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 17 for calling a global function with example usage: test_generate_labeled_regions() without return types