code: def _get_high_intensity_peaks(
      image, mask, num_peaks, min_distance, p_norm
  ):
      """
      Return the highest intensity peak coordinates.
      """
      # get coordinates of peaks
      coord = np.nonzero(mask)
      intensities = image[coord]
      # Highest peak first
      idx_maxsort = np.argsort(-intensities, kind="stable")
      coord = np.transpose(coord)[idx_maxsort]
  
      if np.isfinite(num_peaks):
          max_out = int(num_peaks)
      else:
          max_out = None
  
      coord = ensure_spacing(
          coord, spacing=min_distance, p_norm=p_norm, max_out=max_out
      )
  
      if len(coord) > num_peaks:
          coord = coord[:num_peaks]
  
      return coord
  
file_path: scikit-image/skimage/feature/peak.py
imports: from warnings import warn
  import numpy
  import scipy.ndimage
  from ..None import measure
  from .._shared.coord import ensure_spacing
label_desc: Use image node_id 1 for calling a global function with example usage: _get_high_intensity_peaks(image, mask, num_peaks, min_distance, p_norm) and returns: coord