code: def test_trivial_cases_in_peak_local_max():
      trivial = np.zeros((25, 25))
      peaks = peak_local_max(trivial, min_distance=1)
      assert (peaks.astype(bool) == trivial).all()
  
file_path: nilearn/nilearn/_utils/tests/test_ndimage.py
imports: import numpy
  import pytest
  from nilearn._utils import data_gen
  from nilearn._utils.ndimage import largest_connected_component, peak_local_max
label_desc: Use image node_id 6 for calling a global function with example usage: test_trivial_cases_in_peak_local_max() without return types