code: def test_not_adjacent_and_different(self):
      image = np.zeros((10, 20))
      labels = np.zeros((10, 20), int)
      image[5, 5] = 1
      image[5, 8] = 0.5
      labels[image > 0] = 1
      expected = np.stack(np.where(labels == 1), axis=-1)
      result = peak.peak_local_max(
          image,
          labels=labels,
          footprint=np.ones((3, 3), bool),
          min_distance=1,
          threshold_rel=0,
          exclude_border=False,
      )
      assert_array_equal(result, expected)
  
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 20 for calling the TestPeakLocalMax obj's underlying member method code with example usage: obj.test_not_adjacent_and_different() without return types