code: def ricker(points, a):
      """
      .. deprecated:: 1.12.0
  
          scipy.signal.ricker is deprecated in SciPy 1.12 and will be removed
          in SciPy 1.14. We recommend using PyWavelets instead.
  
  
      Return a Ricker wavelet, also known as the "Mexican hat wavelet".
  
      It models the function:
  
          ``A * (1 - (x/a)**2) * exp(-0.5*(x/a)**2)``,
  
      where ``A = 2/(sqrt(3*a)*(pi**0.25))``.
  
      Parameters
      ----------
      points : int
          Number of points in `vector`.
          Will be centered around 0.
      a : scalar
          Width parameter of the wavelet.
  
      Returns
      -------
      vector : (N,) ndarray
          Array of length `points` in shape of ricker curve.
  
      Examples
      --------
      >>> from scipy import signal
      >>> import matplotlib.pyplot as plt
  
      >>> points = 100
      >>> a = 4.0
      >>> vec2 = signal.ricker(points, a)
      >>> print(len(vec2))
      100
      >>> plt.plot(vec2)
      >>> plt.show()
  
      """
      warnings.warn(_msg % "ricker", DeprecationWarning, stacklevel=2)
      return _ricker(points, a)
  
file_path: scipy/scipy/signal/_wavelets.py
imports: import warnings
  import numpy
  from scipy.linalg import eig
  from scipy.special import comb
  from scipy.signal import convolve
label_desc: Use image node_id 5 for calling a global function with example usage: ricker(points, a) and returns: _ricker