code: def test_generate_maps():
      # Basic testing of generate_maps()
      shape = (10, 11, 12)
      n_regions = 9
      maps_img, _ = generate_maps(shape, n_regions, border=1)
      maps = get_data(maps_img)
      assert maps.shape == shape + (n_regions,)
      # no empty map
      assert np.all(abs(maps).sum(axis=0).sum(axis=0).sum(axis=0) > 0)
      # check border
      assert np.all(maps[0, ...] == 0)
      assert np.all(maps[:, 0, ...] == 0)
      assert np.all(maps[:, :, 0, :] == 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 18 for calling a global function with example usage: test_generate_maps() without return types