code: def test_relative_and_absolute_thresholds_in_peak_local_max():
      image = np.zeros((5, 5))
      image[1, 1] = 10
      image[3, 3] = 20
      peaks_rel = peak_local_max(
          image, min_distance=1, threshold_rel=0.5
      )
      np.testing.assert_equal(len(peaks_rel[peaks_rel == 1]), 1)
      peaks_abs = peak_local_max(
          image, min_distance=1, threshold_abs=10
      )
      np.testing.assert_equal(len(peaks_abs[peaks_abs == 1]), 1)
  
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 4 for calling a global function with example usage: test_relative_and_absolute_thresholds_in_peak_local_max() without return types