code: def test_noisy_peaks(self):
      peak_locations = [(7, 7), (7, 13), (13, 7), (13, 13)]
  
      # image with noise of amplitude 0.8 and peaks of amplitude 1
      image = 0.8 * np.random.rand(20, 20)
      for r, c in peak_locations:
          image[r, c] = 1
  
      peaks_detected = peak.peak_local_max(image, min_distance=5)
  
      assert len(peaks_detected) == len(peak_locations)
      for loc in peaks_detected:
          assert tuple(loc) in peak_locations
  
imports: import itertools
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal, assert_array_equal, assert_equal
  from scipy import ndimage
  from skimage._shared._warnings import expected_warnings
  from skimage.feature import peak
label_desc: Use image node_id 2 for calling the TestPeakLocalMax obj's underlying member method code with example usage: obj.test_noisy_peaks() without return types