code: def local_minima(vector, min_distance=4, brd_mode="wrap"):
      """
      Internal finder for local minima .
      Returns UNSORTED indices of minima in input vector.
      """
      fits = gaussian_filter(
          numpy.asarray(vector, dtype=numpy.float32), 1.0, mode=brd_mode
      )
      for ii in range(len(fits)):
          if fits[ii] == fits[ii - 1]:
              fits[ii - 1] = numpy.pi / 2.0
      minfits = minimum_filter(fits, size=min_distance, mode=brd_mode)
      minima_mask = fits == minfits
      minima = numpy.transpose(minima_mask.nonzero())
      return numpy.asarray(minima)
  
file_path: medpy/medpy/features/texture.py
imports: import numpy
  from scipy.ndimage import uniform_filter, sobel, maximum_filter, minimum_filter, gaussian_filter
  from scipy import stats
  from math import factorial
label_desc: Use image node_id 5 for calling a global function with example usage: local_minima(vector, min_distance, brd_mode) and returns: numpy