code: def _exclude_border(label, border_width):
      """Set label border values to 0."""
      # zero out label borders
      for i, width in enumerate(border_width):
          if width == 0:
              continue
          label[(slice(None),) * i + (slice(None, width),)] = 0
          label[(slice(None),) * i + (slice(-width, None),)] = 0
      return label
  
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 3 for calling a global function with example usage: _exclude_border(label, border_width) and returns: label