code: def locmin(f, Bc=None, out=None, output=None):
      """
      filtered = locmin(f, Bc={3x3 cross}, out={np.empty(f.shape, bool)})
  
      Local minima
  
      Parameters
      ----------
      f : ndarray
      Bc : ndarray, optional
          structuring element
      out : ndarray, optional
          Used for output. Must be Boolean ndarray of same size as `f`
      output : deprecated
          Do not use
  
      Returns
      -------
      filtered : ndarray
          boolean image of same size as f.
  
      See Also
      --------
      locmax : function
          Regional maxima
      """
      Bc = get_structuring_elem(f, Bc)
      Bc = _remove_centre(Bc.copy())
      output = _get_output(f, out, "locmin", np.bool_, output=output)
      return _morph.locmin_max(f, Bc, output, True)
  
imports: from __future__ import division
  import numpy
  from .internal import _get_output, _verify_is_integer_type, _check_2
  from .None import _morph
label_desc: Use image node_id 15 for calling a global function with example usage: locmin(f, Bc, out, output) and returns: _morph