code: def correlate(
      input, weights, output=None, mode="reflect", cval=0.0, origin=0
  ):
      """
      Multi-dimensional correlation.
  
      The array is correlated with the given kernel.
  
      Parameters
      ----------
      %(input)s
      weights : ndarray
          array of weights, same number of dimensions as input
      %(output)s
      %(mode_multiple)s
      %(cval)s
      %(origin_multiple)s
  
      See Also
      --------
      convolve : Convolve an image with a kernel.
      """
      return _correlate_or_convolve(
          input, weights, output, mode, cval, origin, False
      )
  
imports: from __future__ import division, print_function, absolute_import
  import warnings
  import numbers
  import numpy
  import operator
  from .None import _ni_support
  from .None import _nd_image
  from .None import _ni_docstrings
label_desc: Use image node_id 15 for calling a global function with example usage: correlate(input, weights, output, mode, cval, origin) and returns: _correlate_or_convolve